Simple angular directive to prevent user from clicking multiple times on a element when performing an asynchronous action.
Install with npm or bower
npm install --save click-and-wait
bower install --save click-and-wait
clickAndWaitdirective as a dependency for your appangular;
clickAndWaitdirective in any element
The asynchronous action passed as argument should be a
yarn install to install dependencies
- Fork it!
- Create your feature branch
git checkout -b feature/my-new-feature
- Write ES6/ES2015+ code using the Airbnb Style Guide
yarn buildto 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 😁
This project is licensed under the MIT License - see the LICENSE file for details