Angularjs ng-copy Instruction
Angularjs instance
Executes an expression when the text of the input box is copied:
Note: The value of the variable "count" in the instance automatically increases by 1 when the text of the input box is copied.
Definitions and usage
The ng-copy directive is used to tell angularjs what to do when HTML element text is copied.
The ng-copy directive does not overwrite the original oncopy event of the element, and the ng-copy expression and the original Oncopy event are executed when the event is triggered.
Grammar
<element ng-copy= "expression" ></element>
All HTML elements are supported.
Parameter values
| value |
Description |
| Expression |
An expression that is executed when the element text is copied. |
The above is the ng-copy instruction of the basic data collation, learning Angularjs friend under the reference.