Easy Tutorial
❮ Ng Ng Non Bindable Ng Ng Repeat ❯

AngularJS ng-copy Directive

AngularJS Reference Manual


AngularJS Example

Execute an expression when the text in the input field is copied:


Definition and Usage

The ng-copy directive is used to tell AngularJS what to do when the text of an HTML element is copied.

The ng-copy directive does not override the element's original oncopy event; when the event is triggered, both the ng-copy expression and the original oncopy event will be executed.


Syntax

Supported by all HTML elements.


Parameter Values

Value Description
expression The expression to be executed when the element's text is copied.

AngularJS Reference Manual

❮ Ng Ng Non Bindable Ng Ng Repeat ❯