WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-paste Directive


Example

Execute an articulation when content is glued into the input:

<input ng-paste="count = check + 1" ng-init="count=0" value="Cut this text" />
Try it yourself »

Definition and Usage

The ng-paste order guides AngularJS when content is stuck into a HTML element.

The ng-paste order from AngularJS won't abrogate the component's unique onpaste occasion, both will be executed.


Syntax

<element ng-paste="expression"></element>

Supported by <input>, <select>, and <textarea> and other editable elements


Parameter Values

Value Description
expression An articulation to execute when content is being glued into an element.