Let's say I have
<input type="text" ng-paste="foo(v)" ng-model="v">
and
$scope.foo = function(val) {
console.log(val);
}
I get 'undefined' on console.
I think it's because when the moment ng-paste is called, model is still 'undefined' and then pasted value is coming after.
How can I use pasted strings using ng-paste?