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:

enter image description here

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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -