In my current Angular 4 application, I am faced with the challenge of populating a dropdown menu with data from an API response.
Specifically, I am struggling to retrieve the necessary information for each section from the API.
The API provides data on Categories, Groups, and Sub-groups, where each Group includes two sub-groups.
To demonstrate my issue, I have created a StackBlitz file which you can access here:
https://stackblitz.com/edit/angular-bootstrap-carousel-dynamic2-y6iknh?file=app%2Fapp.component.ts
While I am able to receive the API response, I am unsure how to map the values to the dropdown options correctly.
If anyone could provide guidance on how to tackle this problem, it would be greatly appreciated.