01 2022 档案

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

点击右上角即可分享
微信分享提示