Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0/angular.min.js"></script>
</head>
<body ng-app="App" ng-controller="Controller as c">
  <h1>ngModelOptions</h1>
  <div>
    <h3>Search [Default]</h3>
    <input type="text" ng-model="c.search1" ng-model-options="{ updateOn: 'default' }">
    <div ng-repeat="e in c.employees | filter: c.search1">{{e}}</div>
  </div>
  <div>
    <h3>Search [Blur]</h3>
    <input type="text" ng-model="c.search2" ng-model-options="{ updateOn: 'blur' }">
    <div ng-repeat="e in c.employees | filter: c.search2">{{e}}</div>
  </div>
  <div>
    <h3>Search [Debounce]</h3>
    <input type="text" ng-model="c.search3" ng-model-options="{ debounce: 1000 }">
    <div ng-repeat="e in c.employees | filter: c.search3">{{e}}</div>    
  </div>  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers