How to make a ngif inside an ngfor
<ion-card *ngFor="let item of produtos" *ngIf="produtos.length > 0">
<!-- conteúdo dentro do html -->
</ion-card>
The condition " products.length> 0 " checks if the products array has size greater than zero (1,2,3 ... n), if any, it shows the rest of the content, if there is none, the content inside the tag with ng-if (in this case, the ion-card) will not appear.