how to make a new menu (app-menu) move when I click Other Menu image 1: https://drive.google.com/open?id=1WbZHH ... wQDEY6sNZ7
image 2: https://drive.google.com/open?id=1ObxZM ... _2UQ85FP8L
switch menu
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
Did you try using command attribute for the menu item and update menu model? For example;
Code: Select all
this.model = [
{label: 'Dashboard', icon: 'fa fa-fw fa-home', routerLink: ['/']},
{
label: 'Customization', icon: 'fa fa-fw fa-bars' , badge: '8', command: () => this.addMenu()
}
Code: Select all
addMenu() {
this.model.push({label: 'New Menu', icon: 'fa fa-fw fa-wrench', routerLink: ['/newmenu']})
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests