Routing
You can implement routing in the Menu.
To set the functionality, either:
- Use the
select
event to navigate to the route that the Menu item represents, or - Use a link template to add the
routerLink
directive to the item link.
The following example demonstrates how to convert the routes to an array of MenuItems
and navigate to the selected item route in the select
event.
The following example demonstrates how to use a link template to render the routerLink
directive.