title: Can I put a timer on a .on('keyup' to cut down the number of updates?
body: <p>I have the following code working:</p>
  
  <pre><code>$wmdInput.on('keyup', function () {
      var rawContent = $wmdInput.val();
      scope.$apply(function () {
          ngModel.$setViewValue(rawContent);
      });
  });
  </code></pre>
  
  <p>However it seems to slow down my entering of characters. Is there some way I could put a timeout on this so that all the data is saved but it just does not do it more than for example once every two seconds?</p>