Ng Ng Copy
# AngularJS `ng-copy` Directive
[ AngularJS Reference](#)
* * *
## AngularJS Example
Execute an expression when text in an input field is copied:
[Try it Β»](#)
* * *
## Definition and Usage
The **ng-copy** directive tells AngularJS what to do when text is copied from an HTML element.
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 execute.
* * *
## Syntax
Supported by all HTML elements.
* * *
## Parameter Values
| Value | Description |
| --- | --- |
| _expression_ | An expression to execute when the element's text is copied. |
* * AngularJS Reference](#)
YouTip