AngularJS ng-cut directive
Definition and Usage
ng-cut
Directive tells AngularJS what to do when you cut the text of an HTML element.
from AngularJS ng-cut
Directive does not override the original oncut event of the element,ng-cut
Both the expression and the original oncut event will be executed.
Example
Execute the expression when the text in the input box is clipped:
<input ng-cut="count = count + 1" ng-init="count=0" value="Cut this text" />
Syntax
<element ng-cut="expression</element>
Affected <a>
,<input>
,<select>
,<textarea>
and support for the window object.
Parameters
Parameters | Description |
---|---|
expression | The expression to be executed when the text of the element is clipped. |