title: ng-hide based on parent state
body: <p>I've got a navbar in my main controller and I want a link to show/hide based on the url. I'm using ui-router for routing so I've thought I could use $state for getting the parent state of the current state but I don't know how. I've done this before to get the current state and it works</p>
  
  <pre><code>&lt;li ng-hide="$state.current.name === 'new-sector'"&gt;
      &lt;a ui-sref="new-sector"&gt;+ Add new sector!&lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>But now, I'm working with nested states so the current state is new-sector.location.
  My problem is that I want that link to hide in all new-sector child states!</p>
  
  <p>Thanks in advance for help!</p>