Java API would be - localhost://company/products/123/fetchOptions Its response would be like same below :
{
"Increase": true,
"Decrease" : true,
"Like" : true,
"Dislike" : true,
"Old" : false,
"Others" : true
}
Now on UI using Angular & ngrx i need to include changes to fetch data from above API and display all 6 values above as dropdown Options.
The value with boolean false will be shown in dropdown but would be disabled.
How to do that using Ngrx ?
i know a bit about it, that first i need to define Interface, then Any Action followed by its dispatcher so that i can subscribe to it in my UI component (productAttributes.component.ts).
How would be my interface like and other things ? Currently using JSON to make everything ready, later will replace JSON url with API
Thanks in advance for help...