in controller A I do $location.path('/home')
, but actually I want a normal redirect. $location.path does not reload the page. I know in ui-route there's $state.go({reload:true})
, but how to do it with normal ngRoute? I do
.controller('home', function($route){
$route.reload()
}
I got an infinite loop.