Answers for "angular ngif condition empty or null"

0

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>
Posted by: Guest on May-03-2021

Browse Popular Code Answers by Language