web-profile

Angular check if array is empty in template

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

Leave a Reply

Your email address will not be published.