Skip to content

Instantly share code, notes, and snippets.

@mogox
Created August 21, 2014 22:54
Show Gist options
  • Save mogox/5da18f31dee9bf160ff0 to your computer and use it in GitHub Desktop.
Save mogox/5da18f31dee9bf160ff0 to your computer and use it in GitHub Desktop.
How to use includedByState on ng-hide (Angular UI, angular-route, state)
<li class="messages" ng-hide="'messaging' | includedByState">
<a href="#messages-ui-tab" ng-click="goToState({Id: <%= @user.id %>})">Messages</a>
</li>
<li class="messages" ng-show="'messaging' | includedByState">
<a href="#messages-ui-tab">Link2 - 2 </a>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment