title: How I do an "onload" event in Angular 5?
body: <p>I am trying to call a function onload element, like a onload=&quot;function()&quot; in Javascript.</p>
  <p>So this is the code:</p>
  <pre><code>&lt;div class=&quot;img-circle&quot; [id]=&quot;pet.id&quot; (load)=&quot;imgLoad( pet.id, pic )&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>Function is working fine, I try with (click) and works, but I try with (load), (onload), (loaded) and not working.</p>