title: $location.path() vs $location.hash() in angularjs
body: <p>if my present URL is : <code>xzy.com/#/home/new</code></p>
  
  <p><code>$location.hash()</code> gives <code>home/new</code> and <code>$location.path</code> also gives <code>home/new</code></p>
  
  <ol>
  <li>What is the difference in the two?</li>
  <li>If inside the controller of home/new I write <code>$location.hash("#/home/new")</code> or <code>$location.path("/home/new")</code> both do not reload the partial but if I do <code>location.href="#/home/new"</code>, it reloads the partial. Why is this?</li>
  </ol>
  
  <p>Also, if inside the partial there is a <code>&lt;a href="#/home/new"&gt;</code> that will also reload the partial.
  Why doesn't setting the path/hash reload the partial?</p>