🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

az-promise-show

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

az-promise-show

angular directives to show or hide an element based on the state of a promise

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

az-promise-show

npm version npm downloads Build Status Code Coverage Gitter

Directives to show or hide an element based on the resolved state of an angular promise.

See the example and the example code

Docs

Usage

Install the module

$ npm install az-promise-show --save

Or just download it from the dist directory.

Depend on the module

angular.module('yourModule', ['azPromiseShow']);

az-promise-show

<div az-promise-show="aPromise">
  I'm only shown when the promise is in flight
</div>

az-promise-hide

<div az-promise-hide="anotherPromise">
  I'm only show when the promise is not in flight
</div>

az-promise-show-hide-class

<div az-promise-show="aPromise" az-promise-show-hide-class="display-none">
  By default, azPromiseShow uses 'ng-hide', but you can specify your own if you want.
  Or, you can use the azPromiseShowOptions service.
</div>

azPromiseShowOptions

angular.module('yourModule').run(function(azPromiseShowOptions) {
  azPromiseShowOptions.className = 'display-none';
});

Keywords

angular

FAQs

Package last updated on 16 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts