乐趣区

基于angular的组件递归

<div class='items' *ngFor='let data of dataset'>
    <div >
        {{data.name}}
    </div>
    <app-recursive *ngIf='data.children' [dataset]='data.children'></app-recursive>
</div>


退出移动版