New to Kendo UI for Angular? Start a free 30-day trial

Routing

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

The Router enables you to load modules which act as root modules for specific paths. The Angular Router loads separate modules for separate components and bootstraps the components. This approach is useful when the paths do not share any main components—for example, public vs. admin sections. To use shared components, move the components into a shared module and import it in the separate module.

To set the functionality, use either of the following approaches:

This approach enables you to navigate to the routes upon clicking the PanelBar items and by using the RouterLink directive. The directive is generated from the routes that are available in the router configuration.

Example
View Source
Change Theme:

Getting the Selected Item

When you use the stateChange event of the PanelBar, the event handler gets the selected item (route) and passes it to the navigate method of the Router.

Example
View Source
Change Theme: