YouTip LogoYouTip

Ng Ng Paste

# AngularJS `ng-paste` Directive [![Image 3: AngularJS Reference Manual](#) AngularJS Reference Manual](#) * * * ## AngularJS Example Execute an expression when text is pasted: [Try it Β»](#) * * * ## Definition and Usage The **ng-paste** directive is used to tell AngularJS what operation needs to be performed when text is pasted on an HTML element. The **ng-paste** directive does not override the element's native onpaste event. When the event is triggered, both the **ng-paste** expression and the native onpaste event will be executed. * * * ## Syntax , ,