I wanted a help with angular, I use an ngFor to generate the "-" and "+" buttons which are the buttons that give the user a choice. It was time to choose the options such as the taste of the pizza wanted that when it clicked on some flavor that "+" button disappeared .. understand?
<ion-list *ngIf="varia.eMax > 1">
<ng-container *ngFor="let item of itensVaria">
<ion-item class="compact" *ngIf="item.idPV == varia.idPV">
<ion-row no-padding>
<ion-col col-7 style="text-align: left;">
<h2 class="h2">Descrião do item</h2>
</ion-col>
<ion-col col-5>
<button ion-button icon-only clear color="danger" (click)="changeQty(item, varia, -1)">
<ion-icon name="remove-circle"></ion-icon>
</button>
<!-- <button ion-button clear color="danger"> qtd do item </button> -->
<button ion-button icon-only clear color="danger" (click)="changeQty(item, varia, 1)">
<ion-icon name="add-circle"></ion-icon>
</button>
</ion-col>
</ion-row>
</ion-item>
</ng-container>
But as there are several flavors and the user can choose only at most 3 and at least 2 for example I wanted to click on the flavor x the button for this flavor was unavailable indicating that it already clicked on this flavor! >