Submit fieldname to a list


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">
    {{}} <button ion-button color="secondary" (click)="onSubmit(" name="name"> --> </button>

How can I get the in the submit part?