hi all,
I can get items in a list from firebase with the next code:
<!-- Loops through and creates multiple items -->
<ion-item *ngFor="let item of items">
Item {{item}}
</ion-item>
Is it possible to put a button behind every item and when push that button that the item name is inserted in a sort of shopping card? Of course it is possible but how? I did the following code behind every item but when i click the button there is an empty value inserted, i dont understand
Please do Like this
<ion-item *ngFor=“let item of items ; let i = index;”>
{{item}} <button type=“button” ion-button color=“secondary” value=“item” (click)=“onSubmit(i)” name=“todo” id=“todo”> →
The indexing part is not working. the item in the submit is working but still an empty field in the list. So there is a reaction but without visible data