Home » AngularJS ng-cut Directive

AngularJS ng-cut Directive

by Online Tutorials Library

AngularJS ng-cut Directive

The AnglarJS ng-cut directive specifies the custom behavior of AnglarJS when the text of the input field is being cut. It doesn?t override the element’s original oncut event; both the ng-cut expression and the original oncut event will be executed.

It is supported by HTML tags like < a >, < input >, < select >, < textarea >, and the window object.

Syntax:

Parameter explanation:

expression: It specifies an expression that is executed when the text of an element is being cut.

Let’s take an example to demonstrate ng-ct directive.

See this example:

Test it Now

You may also like