putting input according to the value I have in the list in angular

Viewed 33

I'm trying to show values in input boxes, but I want according to the amount of value in the list, if there are 2 values, 2 entries will appear with the values in the list

Follow as it is in html:

<div class="form-group" *ngFor="let rastreio of pedidos.rastreio; let i = index">
      <input type="text" id="rastreio" [ngModel]="rastreio" name="rastreio"
       class="form-control back_imput p-inputtextarea p-inputtext p-component p-element">
 </div>

result:

enter image description here

As I want:

enter image description here

If you see it is making the entries according to the amounts of value in the list, but when it goes to add the values in the entries it always puts the last value in all the entries.

This is the list I get:

enter image description here

I really appreciate if anyone can help me

0 Answers
Related