ngx-prevent-double-submission
Installation
To install this library, run:
$ npm install ngx-prevent-double-submission --save
Consuming your library
Once you have installed it you can import PreventDoubleSubmitModule
from ngx-prevent-double-submission
in any application module. E.g.
;; ; // Import your library;
Once it is imported, you can use prevent-double-submit
as attribute on your submit button:
<!-- app.component.html --> Try to double click on the submit button and check into console. It should show message only once. Submit
License
MIT © Nikhil Navadiya