import { NgModule } from '@angular/core'; import { MenuModule } from '@p2/platform'; @NgModule({ imports: [ MenuModule.forRoot([ { title: "dashboard", path: "/dashboard" }, { title: "elements", groups: [ { title: "Main Buttons", menus: [ { title: "edit button", path: "/button" }, { title: "save button", path: "/button" }, ] }, { title: "Action Buttons", menus: [ { title: "approve button", path: "/button" }, { title: "map button", path: "/button" } ] } ] } ]) ], exports: [ MenuModule ] }) export class AppMenuModule {}