<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example - example-example37-production</title>
  

  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.2/angular.min.js"></script>
  <script src="script.js"></script>
  

  
</head>
<body ng-app="debounceExample">
  <div ng-controller="ExampleController">
  <form>
    Name:
    <input type="text" ng-model="user.name" ng-model-options="{ debounce: 800 }" ng-change="triggerCall()"/><br />
  </form>
  <pre>username = "{{user.name}}"</pre>
</div>
</body>
</html>

<!-- 
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
-->
(function(angular) {
  'use strict';
angular.module('debounceExample', [])
  .controller('ExampleController', ['$scope', function($scope) {
    $scope.user = {};
    $scope.triggerCall = function(){
      alert("the MT call has been triggered");
    }
  }]);
})(window.angular);

/*
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/