0
I use the last version of the angular, and I’m having a hard time passing a value to the field, follow details below
I am pulling data from an api and sending in list to a select
<option *ngFor="let perfil of perfilAdd">{{perfil.name}}</option>
done this, by selecting I need him to return to me name and id, unfortunately the object id is null, so I need it to be manipulated, so when selecting it returns the right value..
Can you help me?
what is null is the "profile.id" item or the <option> tag? If it is the tag, you can complement it with: <option [value]="profile.id">{profile.name}</option>
– brenodiogo