1.1.1 • Published 2 years ago

ng-prevent-cut-copy-paste v1.1.1

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
2 years ago

NgPreventCutCopyPaste

Features

  • This directive allows to prevent to cut, copy and paste values from input.

Dependencies

Latest version available for each version of Angular

ng-prevent-cut-copy-pasteAngular
1.1.113.x 12.x 11.x
1.1.013.x 12.x 11.x
1.0.09.x 8.x 7.x

Install

  npm install ng-prevent-cut-copy-paste --save

Setup

Add NgPreventCutCopyPasteModule to appModule, make sure you have configured ngx-translate as well

  import { BrowserModule } from '@angular/platform-browser';
  import { NgPreventCutCopyPasteModule } from 'ngx-error-message';

  @NgModule({
    declarations: [
      AppComponent
    ],
    imports: [
      BrowserModule,
      NgPreventCutCopyPasteModule //NgPreventCutCopyPasteModule added
    ],
    providers: [],
    bootstrap: [AppComponent]
  })
  class MainModule {}

Use

After configuration you can used the directive as follow example

  <input type="password" formControlName="password" placeholder="Password" class="form-control" ngPreventCutCopyPaste>

License

MIT


GitLab @darioegb  ·