Hi,
I’m trying to evaluate builder.io for our B2B e-commerce site.
Sorry, I haven’t really followed the suggested post format but as all questions are a bit generic i hope its still OK.
So far I’ve gotten the angular examples working with our API but I’m having some problems with some of the concepts.
If you can point me in the right directions in the docs that would be a great help as my terminology is not great.
Passing data to builder
I was hoping to continue using my existing api services in Angular that all basically returns an observable. Can observables
be used when passing data back to builder (state) or do i have to subscribe in angular and pass the data?
Change detection
From my initial tests I didnt get the change detection to work but it’s of course possible i did somthing wrong.
How do i trigger an update when i refresh my angular services with new parameters? Or should it work directly if i subscribed?
Actions
I have a builder page for customer orders with a dropp down that let you select different order statuses.
When a status is changed the angular services should run again and return orders with the correct status.
I’m guessing i should pass a function that takes order status as input from angular to builder through context.
When dropp down is changed in builder it calls the function and angular triggers the service.
Is this how i should handle this kind of scenario?
Defining inputs in builder
Id like to create a “component” in builder for an “article card” that takes a product ID as input (manualy set for each iteration).
The ID should then be used towards my angular services to retreive data from our api.
Pretty sure this is a common usage but would be very grateful if you could point me to the right docs which are relatable.