Instrukcja ng-cut w AngularJS
Definition and usage
ng-cut
指令 tells AngularJS what to do when you cut the text of an HTML element.
from AngularJS ng-cut
指令不会覆盖元素的原始 oncut 事件,ng-cut
Both the expression and the original oncut event will be executed.
Example
Wykonaj wyrażenie, gdy tekst w polu wejściowym jest przycinany:
<input ng-cut="count = count + 1" ng-init="count=0" value="Cut this text" />
Syntax
<element ng-cut="expression</element>
under <a>
,<input>
,<select>
,<textarea>
i wsparcie dla obiektu window.
Parameters
Parameters | Description |
---|---|
expression | Wyrażenie do wykonania, gdy tekst elementu jest przycinany. |