How to correct the following code?
App.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) { $locationProvider.html5Mode({ enabled: true, requireBase: false }) $routeProvider .when('/', { templateUrl: "template/home.html", controller: "homeCtrl" }) .when('/artist', { templateUrl: "template/artist.html", controller: "artistCtrl" }) .when('/:collectionId', { templateUrl: "template/template.html", controller: "templateCtrl" }) .when('/:trackId', { templateUrl: "template/template1.html", controller: "templateCtrl" }) .otherwise({ redirectTo: "/" }) }]); It turns out that I can get only the template template.html and template1.html can not
trackIdandcollectionId? - Grundy/1? - Grundy