New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

angular-click-and-wait

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-click-and-wait

Simple angular directive to prevent user from clicking multiple times on a element when performing an asynchronous action

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

angular-click-and-wait

Simple angular directive to prevent user from clicking multiple times on a element when performing an asynchronous action.

Install

Install with npm or bower

  • npm

    npm install --save click-and-wait

  • Bower

    bower install --save click-and-wait

Usage

  • Add the clickAndWait directive as a dependency for your app

    angular.module('myApp', ['clickAndWait']);
    
  • Use the clickAndWait directive in any element

    <button click-and-wait="asyncAction()"></button>
    

The asynchronous action passed as argument should be a Promise.

Contributing

Dependencies

  • npm
  • yarn

Run yarn install to install dependencies

Development

  • Fork it!
  • Create your feature branch git checkout -b feature/my-new-feature
  • run yarn tdd
  • Write ES6/ES2015+ code using the Airbnb Style Guide
  • run yarn build to build the new version
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin feature/my-new-feature
  • Submit a pull request 😁

License

This project is licensed under the MIT License - see the LICENSE file for details

Keywords

angular

FAQs

Package last updated on 03 Dec 2016

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