title: Angularjs: how to make input[text] ngModel delay valued while typing
body: <p>I have a textbox with <code>ngModel</code> binding, like this: </p>
  
  <p><code>&lt;input type="text" ng-model="typing" /&gt;</code></p>
  
  <p>and value of this texbox</p>
  
  <p><code>value: {{ typing }}</code></p>
  
  <p>I want the model delay to update value while i'm typing. Maybe if I stop type in 500ms, the model will update all value (all things I typed in textbox). 
  I make some google but no luck. Anyong has any idea? please help.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This <a href="https://stackoverflow.com/questions/11868393/angularjs-inputtext-ngchange-fires-while-the-value-is-changing">Angularjs: input[text] ngChange fires while the value is changing</a> doesn't give  solution for my case. It bring solution update value after blur, but I want the value update after stop typing, not blur textbox.</p>
  
  <p><strong>EDIT 2 (Answers)</strong></p>
  
  <p>With angular version 1.4, directive <code>ngModelOptions</code> is useful in my case. I can write like this <code>&lt;input ng-model="typing" ng-model-options="{ updateOn: 'default', debounce: {'default': 500, 'blur': 0} }" /&gt;</code> to delay update value to model 500ms in default and update immediately if lost focus.</p>