title: In Angular, how to redirect with $location.path as $http.post success callback
body: <p>I am attempting to make a simple authentication service by sending a Post to a php file, I need it to load the home page partial on my <code>ng-view</code> when its successful.</p>
  
  <p>This is what I tried :</p>
  
  <pre><code>function loginCtrl($scope, $http, $location){
      $http.post(url,data).success(function(data){
          $location.path('/home');
      });
  }
  </code></pre>
  
  <p>Results in my url changing but <code>ng-view</code> not updating. It updates when I manually refresh the page.</p>
  
  <p>(routes have been configured properly at the <code>$routeProvider</code>, I have tested redirecting this with a standalone function not as a callback and it works )</p>
  
  <p>I have also tried defining <code>$location.path('/home')</code> as a function and then calling it on the callback it still doesn't work.</p>
  
  <p>I did some research and found some articles stating this happens when using another third party plugin, I am only loading angular.js</p>
  
  <p>Any insights or pointers to some study material will be great</p>