小编tit*_*che的帖子

动态嵌套的角度材质菜单

Please tell me how I can solve the following problem:\nI need to implement a dynamically created menu with different nesting levels depending on the data model object. At the moment, using recursion, we managed to create the menu as such, however, there is a problem of assigning the attribute [matMenuTriggerFor] for, directly, the submenu. The problem is that all subsequent submenus in fact refer to the very first, so when you hover over any of the submenus, it causes a …

javascript typescript angular angular-material-6

6
推荐指数
1
解决办法
2万
查看次数