ngx-no-copy
v0.0.3
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.
Downloads
2
Maintainers
Readme
NgxNoCopy
This library was generated with Angular CLI version 12.2.0.
Table of Contents
About
This package is used to prevent copy, paste and cut in the Input's or the HTML
Imports
Import NgxNoCopyModule in your Module
@NgModule({
declarations: [
AppComponent,
],
imports: [
...
NgxNoCopyModule // <--- here
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Usage
Add NoCopyPasteCutDirective to input
<input type="text" NoCopyPasteCutDirective>
Add NoCopyPasteCutDirective to div
<div NoCopyPasteCutDirective >you will not be able to copy this text 😋</div>