title: Passing parameter inside $location.path in Angular
body: <p>I'm just trying to use <code>$location.path()</code> in my controller but also passing a custom variable as a parameter. So it would look something like this I guess:</p>
  
  <pre><code>$scope.parameter = 'Foo';
  
  $location.path('/myURL/' + $scope.parameter);
  </code></pre>
  
  <p>But that doesn't work. Anyone know how this is supposed to be done in Angular?</p>