Latest web development tutorials

AngularJS ng-paste command

AngularJS Reference Manual AngularJS Reference Manual


AngularJS examples

When you paste text expression is executed:

<Input ng-paste = "count = count + 1" ng-init = "count = 0" value = " paste text into this" />

try it"

Definition and Usage

ng-paste command is used to tell the operator AngularJS paste text in HTML elements need to be performed.

ng-paste instructions do not cover element native onpaste event, the event is triggered, ng-pasteexpressions native onpaste event will be executed.


grammar

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

<Input>, <select>, <textarea> and other editable elements support this instruction.


Parameter Value

value description
expression Paste the text into an expression performed on the element.

AngularJS Reference Manual AngularJS Reference Manual