I\'ve written part of a web application in Angular. To ensure that all routes are covered, I wanted to add a redirectTo property to the $routeProvider
redirectTo
$routeProvider
Hi even though it's been two years, just for some one who search for this answer, simply use window.location.assign('/login'). It's work for me.