title: AngularJS show div based on url/condition
body: <p>I'm having a global menu in a <code>AngularJS</code> app. I don't wan't to show some links on certain paths. I have tried the following. In my controller:</p>
  
  <pre><code>$scope.location = $location;
  </code></pre>
  
  <p>In my view:</p>
  
  <pre><code>&lt;div ng-if="location.path() != /signup"&gt;
    [Content] 
  &lt;/div&gt;
  </code></pre>
  
  <p>But I can't get it to work. Any ideas?</p>
  
  <p>Also, is there a way to print out the current path on the page somehow?</p>