Angular check if array is empty in template

<ng-container *ngIf="users?.length">
    Users array: {{ users | json }}
</ng-container>

Leave a Comment