title: How to cancel debounce in ng-model-options in AngularJS
body: <pre><code>&lt;form name="editForm"&gt;
      Title&lt;input ng-model="task.title" type="text" name=taskTitle ng-model-options="{ updateOn: 'default' ,debounce{'default':2000000} }"&gt;
      &lt;a ng-click="UpdateTask(task.title)"&gt;SAVE&lt;/a&gt;
      &lt;a ng-click="editForm.$rollbackViewValue();"&gt;DISCARD&lt;/a&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Since the debounce value is very long, when I click "DISCARD", the ng-model will not reflect its changes. </p>
  
  <p>However, what I want is that when I click "SAVE", either I can change the debounce value or make it expired so the changes will be reflected immediately.</p>
  
  <p>I can't find cancelDebounce() in AngularJs document, anyone would like to provide a solution? Thanks</p>