Hi everyone,

I have a problem with the control of URL on the application that uses 
Angularjs

I see on the documentation of angularjs, that talks about $routeProvider


   1. $routeProvider.when('/Book/:bookId', {
   2. templateUrl: 'book.html',
   3. controller: BookCntl,
   4. });


That's good if I want to load book.html into application. But in my 
application I want to change URL for each case. For example

#/new => to show popup to create new user
#/edit => to show popup to change user infos
#/detail/1234 => to load data from server and show the popup about user

I don't need to load other page in the ngView of document, I want to base 
on (URL + hash) to do smt in my app

So how to control the change of URL ( for ex: change from / to /#/new) or 
when I enter the page abcd.com#/detail/1234 that with load the infos of 
user 1234 and show the popup

Conclusion I don't really understand the way to control the hash and the 
change of hash with angular. Anyone can help me. Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to