Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc