title: Is there a best way to set image src in ngFor
body: <p>Is there a best way to set image src in ngFor?</p>
  
  <p>I already done that using the following code</p>
  
  <pre><code>&lt;li *ngFor="let student of students" &gt;
    &lt;div class="user--image"&gt;
     &lt;img [src]="proPicUrl+student.userId" onError="this.src = 'assets/profile.png'" class="card__img" /&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Is it going to be fast if the image source path comes directly from the server? Is there a chance to reduce processing time?
  As you can see the image will be displayed after it gets the students list.</p>