Easy Tutorial
❮ Ng Ng Init Angularjs Intro ❯

AngularJS ng-cut Directive

AngularJS Reference Manual


AngularJS Example

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


Definition and Usage

The ng-cut directive is used to tell AngularJS what to do when the text of an HTML element is cut.

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


Syntax

The directive is supported by <a>, <input>, <select>, <textarea>, and window objects.


Parameter Values

Value Description
expression The expression to be executed when the element's text is cut.

AngularJS Reference Manual

❮ Ng Ng Init Angularjs Intro ❯