0.0.9 • Published 4 years ago

@polyrithm/click-prevent v0.0.9

Weekly downloads
8
License
-
Repository
-
Last release
4 years ago

click-prevent

This library was generated with Nx.

Running unit tests

Run nx test click-prevent to execute the unit tests.

click-prevent

A click event with stopPropagation;

Install

$ npm install @polyrithm/click-prevent --save

or

yarn add @polyrithm/click-prevent

Usage

// app.module or any module

import {ClickPreventModule} from '@polyrithm/click-prevent';

@NgModule({
  ...
  imports: [ClickPreventModule]
  ...
})

class MyModule {

}

// Example Component

<button class="btn" (click.prevent)="onClick($event, data)">
   Click me
</button>
0.0.9

4 years ago

0.0.8

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago