title: Routing in Angular
body: <p>How can I organize the following code in a way that I can only get template.html and not the template1.html?</p>
  
  <pre><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: "/"
      });
  }]);
  </code></pre>
  
  <p>Thank you for your help!</p>