Routing

You can utilize Angular Router and use the Drawer as a navigational component.

To set the functionality, either:

The following example demonstrates how to use a template to render the routerLink directive.

Example
View Source
Edit In Stackblitz  
Change Theme:

Getting the Selected Item

The following example demonstrates how to convert the routes to an array of DrawerItems and navigate to the selected item route in the select event.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?