Ng-Cut-1

 

In this example we can set the value of isCut=true on ng-cut event(when we cut the text from textbox) and display it below.By default value of isCut variable is false which is set by ng-init directive.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div ng-init="isCut=false; cutValue='Cut me !'"> Cut here: <input ng-cut="isCut=true" ng-model="cutValue" /><br /> <pre>Cut: {{isCut}}</pre> </div> </body> </html>
Output