When accessing the Java API at localhost://company/products/123/fetchOptions, you can expect a response similar to the following:
{
"Increase": true,
"Decrease" : true,
"Like" : true,
"Dislike" : true,
"Old" : false,
"Others" : true
}
Using Angular and ngrx on the UI, I am tasked with fetching data from the API above and displaying all 6 values as dropdown options.
The values with boolean false will be shown in the dropdown but disabled.
How can this be achieved using Ngrx?
I have some knowledge about defining Interfaces, creating Actions, and setting up dispatchers so that I can subscribe to them in my UI component (productAttributes.component.ts).
What should my interface look like and what other steps are needed? I am currently using JSON for testing purposes, but will eventually replace it with the actual API URL.
Thank you in advance for any assistance...