Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home1/tylerfra/public_html/includes/common.inc).

Angular JS Change Route Programmatically

Category: 
Tags: 

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

$location.path('/foo');

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:

$route.reload();