title: Angularjs input field focus event?
body: <p>i use angularjs and i have created a normal input field like this:</p>
  
  <pre><code>&lt;input type="text" style="border: none" ng-model="model" &gt;
  </code></pre>
  
  <p>i want do the following:</p>
  
  <p>if someone clicks in the input field, i want call for example method A. Then he writes text in this field and if the person clicks somewhere in my page so that the input field is no longer focused it should call method B. is this possible with angularjs ? if yes, how can i do that ?
  ng-focus is only active at the input event but not at the output..</p>
  
  <p>i want lock something with this, method A sets only a value to true and method B sets the same value to false. but i must know when the input field is active and when not.</p>