Answer the question
In order to leave comments, you need to log in
What is the best way to implement multi-select responses in AngularJS?
You need to create a menu in which you can select from 1 to n items. Selecting certain items in the menu may open additional sub-items.
[x] Item 1
__[x] sub-Item 1
__[ ] sub-Item 2
__[ ] sub-Item 3
[x] Item 2
[x] Item 3
__[ ] sub-Item 1
__[x] sub- Point 2
What did I do. I described everything in Json and then for a very long time it was necessary and difficult to go through the points at the beginning (I set the "isSelected" item, then by sub-items and did the same). Then he also wrote a cycle of bypassing points and sub-points in order to collect where it was clicked.
Question. Maybe there is a simpler option. with a large nesting level, it is very difficult to get around everything. There are plugins or advise something.
I would very much like to describe everything and then read the finished result of clicking.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question