title: How to pass URL parameters through templateUrl in AngularJS?
body: <p>Trying to learn AngulareJS got stuck with this.<br/></p>
  
  <p>This is the code :</p>
  
  <pre><code>app.config(function ($routeProvider){
  $routeProvider
  .when('/',
  {       
      templateUrl: '/sort',
      controller : 'tasksController'      
  })  
  .when('/expression/:expressionId/type/:typeId',
  {   
      templateUrl: '/sort/'+:expressionId +'/'+ :typeId,
      controller : 'tasksController'  
  })});
  </code></pre>
  
  <p>This is obviously wrong.</p>
  
  <p>Can any one please tell me what is the correct way to do this? Thanks.</p>