How can I make routing in angular case insensitive? For example, if I have a route for www.example.com/home that looks like this:
$routeProvider
.when('/home', {
templateUrl: 'pages/home/home-page.tmpl.html',
controller: 'HomeCtrl',
controllerAs: 'home'
});
How can I configure it so that it works.
www.example.com/Home | www.example.com/HOME | www.example.com/HoMe etc.
source
share