I'm using the PanelBar in my Angular 7 app. I have the app-routing.module.ts routing config populated with parent child routes.
On each route (parent and child) I'm using the canActivate guard.
If my guard returns a false - my PanelBar still shows the path. Although if I try and navigate to the path - Angular routing blocks it like it should.
<kendo-panelbar [selectable]="true">
<kendo-panelbar-item
*ngFor="let route of router.config"
[id]="route.path"
[title]="route.path ? route.path : 'home'"
[selected]="'/' + route.path == selectedId"
[routerLink] = "route.children?null:route.path"
[expanded]="'/' + route.path == selectedParent">
<kendo-panelbar-item
*ngFor="let child of route.children"
[title]="route.path + '/' + child.path"
[id]="route.path + '/' + child.path"
[selected]="'/' + route.path + '/' + child.path == selectedId"
[routerLink] = "route.path + '/' + child.path">
</kendo-panelbar-item>
</kendo-panelbar-item>
</kendo-panelbar>
How do I hide the false guard paths in the PanelBar?
Thanks