title: Restore focus to text input field after setting it disabled and enabled again using AngularJS
body: <p>I have an input field and a $watch over its scope variable that triggers some server request. I disable the field during the request, but when it gets re-enabled again, cursor is missing from the line. I would like it to be present again. </p>
  
  <p>I tried to restore focus by means of e.g. directive  <a href="https://stackoverflow.com/questions/14833326/how-to-set-focus-in-angularjs">How to set focus on input field?</a> but it does not work for some reason in connection with enabling/disabling field (I set both "focusing" and "enabling" variables in the same time.)</p>