Im new to angular and struggling to display nested json object in select dropdown. This is my json object.
[
{
"cuisine":{
"cuisine_id":1035,
"cuisine_name":"Afghan"
}
},
{
"cuisine":{
"cuisine_id":1,
"cuisine_name":"American"
}
}
]
And in my component HTML im displaying like this
<select class="form-control dropdown" name="processTemplate" id="processTemplate">
<option *ngFor="let cuisineList of cusine1 | keyvalue">
{{ cuisineList.value.cuisine_name | json }}
</option>
</select>
I would like to display only cuisine_name in select dropdown. Not sure where im going wrong. Any help is much appreciated