Imagine that I have an object with 3 levels, an order has a list of products and each product has a list of parts.
I wanna to create one component(some textfields and selects) for each class
so I has OrderComponent, ProductComponent and PartsComponent.
And I have one view that I will mount for each order, so in my OrderView will be something like this:
view
- button(to save)
- one OrderComponent
- List of ProductComponent
-List of PartsComponent
- List of ProductComponent
How can I bind all te components to one bind in my OrderView (There I have one button to save the order, but when I click in button I wanna to validate the order)
I need to pass the binder to every component? or have another way?
tks