How to create dynamic nested menu from json object?
I started using Angular Material Design today for the first time and I\'m trying to create nested menus using materia
The following structure should work for you:
My menu {{ mainItem }} {{ subItem }}
Since I placed sub_menu inside the embedded template (*ngFor) we can use the same name for template reference variable(#sub_menu).
sub_menu
*ngFor
#sub_menu
Stackblitz Example