title: angular url with path variables
body: <p>I want to change angular url to /jobs/id. i wrote like below one. will this work?</p>
  
  <p>$location.path("/JobHire/jobs/"+response.data.id);</p>
  
  <p>how should i write route config? i configured like this</p>
  
  <pre><code>$routeProvider
              .when('/jobs/:id',{
                  templateUrl:'partials/job.html'
              })
              .otherwise({
                  redirectTo:'/'
              }); 
  
          $locationProvider.html5Mode(true);
  </code></pre>
  
  <p>Is this a correct way. How to retrieve those parameters inside a controller.</p>