Menu and submenu bind

How to bind menu with sub menu when page laod on browser using Angular 6