title: window.location.pathname vs. $location.$$path in Angular
body: <p>I'm evaluating the path for some logic in my routes and controllers, and it seems like <code>window.location.pathname</code> works just fine as an alternative to injecting <code>$location</code> for <code>$location.$$path</code>, but I'm not sure if Angular has issues when using window.location that I'm not aware of.</p>
  
  <p>Any problems with using `window.location.pathname'?</p>