Disable copy,paste and cut in password type or text type input


#1

Hi,

I want to disable the copy,cut and paste functionality in the password type or text type input box. Is there a plugin or the event binding to the element will do the work?
Please suggest.

Thanks


#2

<input ng-paste="$event.preventDefault();" ng-copy="$event.preventDefault();" ng-cut="$event.preventDefault();" ng-init="paste=false" placeholder='paste here' type="password">

This code will work you for ionic 1