title: In Angular, how to know if an image came from the API, if not loader another one instead?
body: <p>in my code I get an image of the API (row. fotoPessoa), if I don't have an image I put another one in place ([src] = &quot;imgPessoa&quot;). How to do this?</p>
  <pre><code>          &lt;ng-container matColumnDef=&quot;fotoIndividuo&quot;&gt;
              &lt;th mat-header-cell *matHeaderCellDef &gt; Foto &lt;/th&gt;
              &lt;td mat-cell *matCellDef=&quot;let row&quot; data-label=&quot;Foto: &quot; &gt; 
                &lt;img [src]=&quot;imgPessoa&quot; &gt; 
                {{row.fotoPessoa}} 
              &lt;/td&gt;
            &lt;/ng-container&gt;
  </code></pre>