I'm using angularjs 1.3.2. How to get clipboard data on paste event?
This question is like: "Paste" event in Angular [ngPaste]
But in this question, the angularjs version is 1.2. And this is not working in angularjs 1.3.2.
Thanks.
I'm using angularjs 1.3.2. How to get clipboard data on paste event?
This question is like: "Paste" event in Angular [ngPaste]
But in this question, the angularjs version is 1.2. And this is not working in angularjs 1.3.2.
Thanks.
I made this plunkr in 1.3.17, the main things to take in account are:
ng-paste="processCb($event)"
event.clipboardData.getData('Text')
.getData expects one argument which is the type of data you want to intercept, more on that: https://w3c.github.io/clipboard-apis/#widl-ClipboardEvent-clipboardData
Also important: this is still a draft and all of this could become useless in the future.