First level panel-menu items don't work as expected. "Home" and "Contracts" are showing submenu deployment caret and routerlink is not working
Code: Select all
<p-panelMenu [model]="items" [style]="{'width':'300px'}"></p-panelMenu>
this.items = [
{
label: 'File',
icon: 'fa-file-o',
items: [{
label: 'New',
icon: 'fa-plus',
items: [
{ label: 'Project' },
{ label: 'Other' },
]
}
]
},
{ label: 'Home', routerLink: ['/'] },
{ label: 'Contracts', routerLink: ['/contracts'] }
];