Skip to content

Instantly share code, notes, and snippets.

@dennis-8
Created July 14, 2018 13:31
Show Gist options
  • Save dennis-8/d673f6e6e37a97a669cb7aaf604c5d94 to your computer and use it in GitHub Desktop.
Save dennis-8/d673f6e6e37a97a669cb7aaf604c5d94 to your computer and use it in GitHub Desktop.
Hide or show DOM element depending on UI-Router state
You can use isState filter with either ng-show or ng-hide.
@dennis-8
Copy link
Author

ng-show="('stateA' | isState)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment