Latest web development tutorials

AngularJS ng-cut instruction

AngularJS Reference Manual AngularJS Reference Manual


AngularJS examples

Text input box cut is executed when the expression:

<Input ng-cut = "count = count + 1" ng-init = "count = 0" value = " cut the text" />

try it"

Definition and Usage

ng-cut instruction is used to tell the operator when the text cut AngularJS HTML elements need to be performed.

ng-cut instruction command does not overwrite the original elements oncut event, the event is triggered, ng-cutexpression to the original oncut event will be executed.


grammar

<Element ng-cut = "expression "> </ element>

<a>, <input>, <select>, <textarea>, and window objects support the directive.


Parameter Value

value description
expression Expression element text is executed when cut.

AngularJS Reference Manual AngularJS Reference Manual