title: Angular $location undefined
body: <p>I am getting an undefined error for $location. I've been staring at this for too long and need an extra pair of eyes to tell me what I am doing wrong. Thank you.</p>
  
  <p>Controller Example:</p>
  
  <pre><code>myApp.controller('testCtrl', ['$scope', 'GeolocationSvc', '$http', '$location', function ($scope, geolocation, $http, $location, uiGmapGoogleMapApi)
  
      $scope.test = function ($location){
         $location.search('test', 0);
      }
  ]);
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Cannot read property 'search' of undefined</p>
  </blockquote>