R
R
Roman Rakzin2016-01-15 01:54:15
Angular
Roman Rakzin, 2016-01-15 01:54:15

How to display nested lists in angularjs?

There is json
{"Id":2,"Category":"Anatomy","Parent":0},{"Id":3,"Category":"Chemistry","Parent":0},{"Id" :4,"Category":"Physics","Parent":0}, {"Id":1,"Category":"Abdominal Anatomy","Parent":2},{"Id":11,"Category ":"Chest Anatomy","Parent":2}}
"Parent" is the parent element that contains the current element
. The point is to draw the checkboxes as a list:

Анатомия
    Анатомия живота
    Анатомия грудной клетки
 Химия
 Физика

Only nesting levels can be many.
And another question is how to make sure that all the checkboxes are checked first, and if I select "Anatomy of the abdomen", then the "Anatomy" checkbox should be checked and vice versa, if I select all the child ones, so that the parent is checked. How to make a garter?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kumanin, 2016-01-15
@jackkum

angular-ivh-treeview
First link in google for "angular checkbox tree"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question