While working in controller A, I used $location.path('/home')
for redirection. However, I realized that I needed a normal redirect as $location.path does not reload the page. I am aware that in ui-route, we have $state.go({reload:true})
for this purpose. But how can I achieve the same with normal ngRoute? When I tried the following:
.controller('home', function($route){
$route.reload()
}
I ended up in an infinite loop.