The menu items with plain read-only labels and icons are not really useful. The Menu component with user actions need to perform business implementations or navigations to other resources. The major components of menu actions are command invocation and navigations. This can be achieved through the url and routerLink properties of the MenuItem interface.
The example usage of URL and router link options of the MenuItem API would be as follows:
{label: 'View', icon: 'fa-search', command:
(event) => this.viewEmployee(this.selectedEmployee)}
{label: 'Help', icon: 'fa-close', url:
'https://www.opm.gov/policy-data- oversight/worklife/employee-
assistance-programs/'}
In the following sections, you will see how this MenuModel API is going to be used in various kinds of Menu components.