hello guys, i’m building a chat app where user can send picture to other. Here is my json response
and my html code :
<div class="chat-bubble right slide-right">
<div class="message">
<p>{{contents.body}}</p>
<p><img [src]="contents.attachment.url" *ngIf="contents.attachment.url" />
</div>
<div class="message-detail">
<span>{{contents.date | lowercase}}</span>
</div>
</div>
i want to hine the picture if it doesn’t one. any help please !!!