ngif empty angular 12 code example
Example: angular ngif condition empty or null
<h1>angular ngif check array empty example - itsolutionstuff.com</h1> <div *ngIf="myVar?.length"> <p>Array is not empty.</p></div> <div *ngIf="!myVar?.length"> <p>Array is empty.</p></div>