title: How to use an URL param in a templateUrl using ngRoute?
body: <p>I am building an angularjs app, my app.js looks like this. However, it throws <code>Unknown provider: $routeParams</code> error. Any idea why?</p>
  
  <pre><code>var angularSite = angular.module('angularSite', [
    'ui.router',
    'ngRoute',
    'siteController',
    'siteDirectives'
  ])
  .config(['$routeProvider', '$routeParams',
    function($routeProvider,$routeParams) {
      $routeProvider.
        when('/Projects', {
          templateUrl: 'partials/projects.html',
          controller: 'ProjectController'
        }).
        when('/Projects/:projectId', {
          template: 'partials/pages/'+$routeParams.projectId+'.html',
          controller: 'ProjectDetailController'
        }).
        otherwise({
          redirectTo: '/About'
        });
    }]);
  </code></pre>