Angular check if array is empty in template

website creator


<ng-container *ngIf="users?.length">

    Users array: {{ users | json }}

</ng-container>

Leave a Comment