Try it
Javascript
Jquery
Angular
Learn Angular
Learn Javascript
Learn Bootstrap
Learn jQuery
Ng-Model-Options-8
Example of
Ng-Model-Options
<!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> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> </head> <body ng-app="myApp"> <div ng-controller="myController"><br /> <div class="container"> <label> Detail: <textarea class="form-control" ng-model="my.model" ng-model-options="{ updateOn: 'default blur', debounce: {'default': 1000, 'blur':3000} }"></textarea> </label> <pre>Update on debounce and blur :{{my.model}}</pre> </div> </div> <script> var app = angular.module("myApp", []); app.controller('myController', function ($scope, $timeout) { }); </script> </body> </html>
Output
×
Save This try
Title
Description
<p>Example of <code>Ng-Model-Options</code></p>