How to create n number of nested each in ember js?


#1

For example :

[{       label: ‘Happiest’,       items: [{         label: ‘birds’, items: [ { label: “sub_birds” } ],

}, {         label: ‘caterpillars’       }, {         label: ‘kittens’       }]     }, {       label: ‘Orneriest’,       items: [{         label: ‘monkeys’       }, {         label: ‘chipmunks’       }]     }];