title: Angularjs - set view value is not updating display
body: <p>I got an input directive that should allow users to undo. </p>
  
  <p><kbd>Enter</kbd> saves the value using some function, <kbd>Esc</kbd> Cancel edits from the last save. </p>
  
  <p>For the <kbd>Esc</kbd> keypress event i'm using <code>ngmodel.$setViewValue(scope.last_saved_value)</code> but the <strong>input is not updating</strong>. I know from the <a href="http://docs.angularjs.org/api/ng/type/ngModel.NgModelController" rel="noreferrer">docs</a> that this function does not trigger <code>$digest</code> so i put it in an <code>$apply</code> but it is still not working.</p>
  
  <p><a href="http://jsbin.com/huvejuvu/2/edit" rel="noreferrer">JSBIN example </a></p>