title: AngularJS - Image "onload" event
body: <p>I've been searching for an answer to simple but not trivial question: What is a right way to catch image' <code>onload</code> event in Angular only with jqLite? I found <a href="https://stackoverflow.com/questions/17018685/display-image-in-its-actual-size-in-angular-js">this question</a> , but I want some solution with directives.<br/>
  So as I said, this is not accepted for me:</p>
  
  <pre><code>.controller("MyCtrl", function($scope){
      // ...
      img.onload = function () {
          // ...
      }
  </code></pre>
  
  <p>because it is in controller, not in directive.<br/></p>