I am trying to redirect to another route using:
$location.path("/route");
But for some reason it does not work. I made an autocomplete widget using jQuery-UI and I call a function from the scope as soon as the user selects a parameter. I debugged it and it enters the function but never redirects to another route. It changes the route only when a key is pressed.
I think this is strange, but I did not understand how to solve this. I used
window.location = "#/route";
and it works, but I want to use the path() function.
Does anyone know why this is happening?
redirect angularjs location
Tomarto Aug 10 '12 at 19:21 2012-08-10 19:21
source share