@barbulina/ngx-clickoutside
v0.1.1
Published
Angular directive to capture when click outside of element
Downloads
6
Readme
@barbulina/ngx-clickoutside
Angular directive to capture when click outside of element
Install
npm i @barbulina/ngx-clickoutside
Usage
1 Import module
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import { ClickoutsideModule } from '@barbulina/ngx-clickoutside';
@NgModule({
imports: [
BrowserModule,
ClickoutsideModule
],
bootstrap: [AppComponent]
})
export class AppModule { }
2 Use in html element
<div (libOnClickOut)="test()"> testing div </div>