0

`component :-

*ngFor="let ind of industryService.industries" value="{{ind.field[1].fieldName}}"`

How access fieldName in this collection object here

Govi-Boy
  • 89
  • 10

1 Answers1

1

In order to do that, you will need to go deeper throught your object :

[value]="ind.field[0].field_id.fieldName"

And if you want to ngFor of field :

<div *ngFor="let ind of industryService.industries; let i = index" [value]="ind.field[index].field_id.fieldName">
  <div *ngFor="let fieldItem of ind.field>
    <p>{{ fieldItem.fieldName }}</p>
  </div>
</div>
Emilien
  • 2,701
  • 4
  • 15
  • 25