0
I’m simulating something similar to a shopping cart using ionic 2
. Basically you write the item name and value and create a checkbox list as in the image below.
But I wanted the option only appeared when selecting one of the checkbox and did not become static on the screen as it is now. How can I do this?
grid calling the Checkbox:
<ion-grid>
<ion-row *ngFor="let item of produto">
<ion-item>
<ion-label (click)="clicou(item.desc)">
{{ item.desc }} {{ item.valor }}
</ion-label>
<ion-checkbox checked="false"></ion-checkbox>
</ion-item>
</ion-row>
</ion-grid>
part that arrow the button in the code:
<button ion-button block (click)="remove()" color="danger" style="transition: none 0s ease 0s;">
<span class="button-inner">
<ion-icon name="close"></ion-icon>
Remover Selecionados
</span>
<div class="button-effect"></div>
</button>
Managed to solve the problem?
– viana
@Viana part of him yes
– SHRIMP