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
The above solution with /404 does not work for me. This however seems to work
.otherwise({ controller : function(){ window.location.replace('/'); }, template : "" });
PS. I am using Angular 1.2.10