AngularJS ng-cut ɪ̀g̀wà

Definition and usage

ng-cut The directive tells AngularJS what to do when you cut the text of an HTML element.

from AngularJS ng-cut The 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 cut:

<input ng-cut="count = count + 1" ng-init="count=0" value="Cut this text" />

Try it yourself

Syntax

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

by <a>,<input>,<select>,<textarea> and support for the window object.

Parameters

Parameters Description
expression Expression to be executed when the text of the element is cut.