title: Inject AngularJS 1.2 $location service into controller not working in PhoneGap 3.0
body: <p>In a Windows Phone 7.1 emulator with PhoneGap 3.0 and AngularJS 1.2, why does this not work:</p>
  
  <pre><code>angulargap.controller('HomeController', ['$scope', '$routeParams', '$location',
  function ($scope, $routeParams, $location) {
      $scope.$routeParams = $routeParams;
      $scope.$location = $location;
      $scope.message = "AngularJS!";
  }]);
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>ERROR:Error: [$injector:cdep] Circular dependency found: 
  http://errors.angularjs.org/1.2.0-rc.2/$injector/cdep?p0=
  </code></pre>
  
  <p>While this works:</p>
  
  <pre><code>angulargap.controller('HomeController', ['$scope', '$routeParams',
  function ($scope, $routeParams) {
      $scope.$routeParams = $routeParams;
      $scope.message = "AngularJS!";
  }]);
  </code></pre>
  
  <p>What is going wrong with injecting the $location service in this specific scenario? All works great in Chrome and Internet Explorer in a desktop browser. But it does not work in the Windows Phone 7 device emulator, nor on the physical device itself.</p>