01 2022 档案
摘要:基于angular的菜单递归 1. ngfor 顶层调用菜单组件 通过angular的for循环指令调用菜单树形数据结构。 <app-menu-item *ngFor="let menuItem of menu" [menuItem]="menuItem" [isRoot]="true" ></ap
阅读全文
摘要:ng-container与ng-template用法 1.ng-container与ng-template概念 ng-container既不是一个Component,也不是一个Directive,只是单纯的一个特殊tag。 这点类似于template,Angular复用了HTML5规范中templa
阅读全文