Instead of bombarding you with lines of code, I decided to create a simple sketch to illustrate my current situation. The abstract picture gives a good overview, while the reality picture shows the actual scenario.
When I click on "Send" within bigBox_1
, I want all the inputs from littleBox_1
through littleBox_n
inside bigBox_1
to be passed to my function.
What would be the most effective approach to achieve this?
I attempted to dynamically name my ng-models (within littleBox_1
through littleBox_n
), but I couldn't find a solution for passing all the parameters.
Here are some key points to consider:
- The number of big boxes is unknown
- The quantity of little boxes inside each big box varies
- The number of little boxes in different big boxes may differ
Reality: https://i.sstatic.net/afMnx.png
Abstract: https://i.sstatic.net/hlQ3l.jpg
The model schema for the boxes: https://i.sstatic.net/ztFFk.png