I'm using p-panelmenu from the excellent prime-ng library.
<p-panelMenu [model]="items" (click)="onClicked(event)"></p-panelMenu>
Trouble is I can't work out how to get the menu to do anything. The examples on the primeNG website all display menus but don't trigger any actions on them.
How can I get the currently selected item? I note that there is a "command" callback on the menuItem class; but it seems crazy to define a callback for every menu item. Rather than just one callback that gets passed the selected menu item. What am I missing here?