angular-if-state
Directives to show or hide an element depending on the current UI Router state
Installation
Install angular-if-state
by running:
$ npm install --save angular-
Documentation
Add angular-if-state
to your Angular module dependency list:
var MyApp = angular;
show-if-state
This directive provides an attribute to show an element when the current UI Router state matches the specified one.
Settings
hide-if-state
This directive provides an attribute to hide an element when the current UI Router state matches the specified one.
Go Back
Support
If you're having any problem, please raise an issue on GitHub and I'll be happy to help.
Tests
Run the test suite by doing:
$ npm test
Contribute
- Issue Tracker: github.com/jviotti/angular-if-state/issues
- Source Code: github.com/jviotti/angular-if-state
Before submitting a PR, please make sure that you include tests, and that jshint runs without any warning:
$ npm run lint
License
The project is licensed under the MIT license.