Api.services.ts
getListOfNames() {
return this.http.get(this.BaseURL + 'welcome/getnama')
.pipe(map(response => {
return response;
}));
}
After making the API call, I receive the following response:
{
"status": "OK",
"Output": [
{
"id_pemborong": "1569079912",
"nama": "ayub"
},
{
"id_pemborong": "1569125109",
"nama": "Hartono"
},
{
"id_pemborong": "1569319859",
"nama": "agus"
},
{
"id_pemborong": "1569416787",
"nama": "joko"
}
]
}
I am looking for guidance on how to bind this response to a Select Option in Angular. Can someone help me with this?