Javatpoint Logo
Javatpoint Logo

AngularJS ng-paste Directive

The AnglarJS ng-paste directive specifies the custom behavior of AngularJS when text is pasted into an HTML element. It doesn't override the element's original onpaste event, both will be executed.

It is supported by <input>, <select>, and <textarea> and other editable elements.

Syntax:

Parameter explanation:

expression: It specifies an expression that is executed when text is being pasted into an element.

Let's take an example to demonstrate the usage of the ng-paste directive.

See this example:

Test it Now




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA