Improve this Doc  View Source

ngPaste

  1. - directive in module ng

Specify custom behavior on paste event.

Directive Info

Usage

Arguments

Param Type Details
ngPaste expression

Expression to evaluate upon paste. (Event object is available as $event)

Example

  Edit in Plunker
<input ng-paste="paste=true" ng-init="paste=false" placeholder='paste here'>
pasted: {{paste}}