javascript - Dynamic create cascade select option with ng-repeat angular -
i have following problem , not know how solve it:
i have list of items in ng-repeat each item need add combobox cascade, example: item 1 have first combobox category 1, when select category should appear subcategories of combobox 1(category 1), creating of combobox should dinamic, without know quantity of combobox go create eatch items of ng-repeat. this:
this answer might you, have make sure of nested items named same.
recursion in angular directives
and example json object
{ name: 'parent1', children: [{name: 'child1', children: [{ name: 'child1a'}]}, {name: 'child2', children: []}] }, { name: 'parent2', children: [] }
then make recursion on children property array
Comments
Post a Comment