AngularJS Routing Case Sensitivity AngularJS Routing Case Sensitivity angularjs angularjs

AngularJS Routing Case Sensitivity


There is an option you can pass to $routeProvider to toggle case sensitivity:

config(function ($routeProvider) {    $routeProvider.        when('/', { controller: 'TmpCtrl', templateUrl: '/app/home.html' }).        when('/foo', { controller: 'TmpCtrl', templateUrl: '/app/foo.html', caseInsensitiveMatch: true }).          otherwise({ redirectTo: '/' });});