Dynamic nested Material menu from json object in Angular 5
问题 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 material design. The documentation is pretty straight forward for static stuff. But I need to create dynamic nested menu from json object and I can't find a simple solution to this anywhere. It just needs to be one level deep. json object(not set in stone): my_menu = { 'main1': ['sub1', 'sub2'], 'main2': ['sub1', 'sub2'], } which