Answer the question
In order to leave comments, you need to log in
How can I process all inputs in Angular2+ with one function?
<div>
{{product.title}}
<input class="form-control" type="text" [(ngModel)]="product_title">
<button class="btn btn-secondary" (click)="editItem(product.id)">Edit</button>
</div>
<div>
Artikul: {{product.artikul}}
<input class="form-control" type="text" [(ngModel)]="product_artikul">
<button class="btn btn-secondary" (click)="editItem(product.id)">Edit</button>
</div>
<div>
Price: {{product.price}}
<input class="form-control" type="text" [(ngModel)]="product_price">
<button class="btn btn-secondary" (click)="editItem(product.id)">Edit</button>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question