Submit fieldname to a list


#1

Hi all,

I have a list with data from a firebase database. Now is there behind every item in the list a button. The meaning is when you push on an item’s button that the name of that item is submitted to an other list but every item in the other list has an empty name. The submit works but not with a name but an empty field.

<ion-item *ngFor="let product of products | async">
    {{product.name}} <button ion-button color="secondary" (click)="onSubmit(product.name)" name="name"> --> </button>
  </ion-item>

How can I get the product.name in the submit part?