title: Angular 2 image src as function return
body: <p>In my Angular 2 application I have a list of users &quot;Users:any&quot; which contain the properties: name, job, age... etc. The problem is that to get the profile image  I have to get the the id of the image from the Users object, then use a web service <code>getImage(ImageId)</code>, so I have this in my html:</p>
  <pre><code>&lt;div *ngfor=&quot;let user of users&quot;&gt;
      &lt;img [src]=&quot;getImage(user.profileImageId)&quot;/&gt;
  </code></pre>
  <p>In this case, I can't get the profile image displayed, I think the html is loading before the data?</p>