This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
ps-if with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Angular directive that is a hybrid of ngIf and ngShow.
// commonjs users: angular.module('app', [require('ps-if')]); // everyone else angular.module('app', ['ps.if']);
<div ps-if="show" ps-cool-down-millis="5000"> <big-expensive-directive/> </div>
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