title: Directive to disable Cut, Copy and Paste function for textbox using Angular2
body: <p>I am using Angular2 to restrict the copy and paste in textbox. But how do i write a custom directive, so that it will be easy to apply for all the text fields.</p>
  
  <p>Below is the working code to restrict the copy and paste functionality.</p>
  
  <pre><code>&lt;ion-input formControlName="confirmpass" type="tel" (cut)="$event.preventDefault()" (copy)="$event.preventDefault()" (paste)="$event.preventDefault()"&gt;&lt;/ion-input&gt;
  </code></pre>