I'm trying to find a way to modify a single route parameter for the 
currently active route.
An example of this would be if my current route is 

/some/route/;page=20;pagesize=100


I would like to be able to get that route, modify the page to say, 21, and 
set the address bar to the new route:

/some/route/;page=21;pagesize=100


I was hoping there would be some way to use the framework for this and 
avoid having to manually edit the URL myself for two main reasons:

   1. If the routing schemes change at some point in future, this would 
   break any code that manually generated new URLs.
   2. It's not always possible to know which URL is the correct format if 
   there are currently no parameters specified.
   If the parent route was /some/route and the child route was /, the 
   correct route would be /some/route without parameters, and 
   /some/route/;page=2 with parameters.
   If the parent route was /some and the child route was /route, the 
   correct route would be /some/route without parameters, and 
   /some/route;page=2 with parameters.
   That presence of that single / will make the difference between 
   navigating to the correct route or not, making it very difficult to 
   generate the route URLs manually.

Thanks.

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to