Angular directive that is a hybrid of ngIf and ngShow.
What this does
- Starts off like ngIf
- When condition changes it becomes an ngShow
- If timeout is specified, becomes an ngIf again once condition has been false for long enough.
1. Depend on
// commonjs users:angular;// everyone elseangular;
2. Use psIf in places you'd use ngIf or ngShow
Angular expression controlling if children are shown or not.
Optional Angular expression (evaluated once). Once children have been hidden for this many milliseconds, directive acts like ngIf. If omitted, directive will act like ngShow forever.
git clone https://github.com/psalaets/ps-if.git
index.htmlin a browser
npm install ps-if --save
bower install ps-if --save