Error message

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.

Angular JS Change Route Programmatically


Sometimes we'll want to dynamically change the route in Angular during some custom code execution. Here's how we can do it:


If your call to $location takes place in an async success callback (i.e. after making a POST request to a server), you may also have to reload the route:


Add new comment