Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

AngularJS ng-cut Directive

AngularJS ng-cut Instruction

AngularJS Reference Manual AngularJS Reference Manual


AngularJS Examples

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

<

input

ng-cut=

"count = count + 1"

ng-init=

"count=0"

value=

"Cut this text"

/

Try it »


Definition and Usage

ng-cut The directive tells AngularJS the action to take when the text of an HTML element is cut.

ng-cut The directive does not override the element's native oncut event. When the event is triggered,ng-cut both the expression and the native oncut event will be executed.


Syntax

<

element

ng-cut=

"expression"

<

/element

, ,


Parameter value

Value Description
expression The expression to execute when the element text is cut.

AngularJS Reference Manual AngularJS Reference Manual