title: $location.path is not a function
body: <p>I'm working frontend using AngularJS v.1.3.15</p>
  
  <p>In my controller, I add $location to</p>
  
  <pre><code>app.controller('SearchCtrl', function ($location) {}
  </code></pre>
  
  <p>but in my function, i'm using</p>
  
  <pre><code>$location.path('/search').search($scope.search_params);`
  </code></pre>
  
  <p>and i received error:</p>
  
  <blockquote>
    <p>$location.path is not a function</p>
  </blockquote>
  
  <p>and only occurs in a few times, not often, but when it happened, it will always cause errors</p>