I am following the official example of Kendo Drawer component for Angular. First, I declared the variable
public items: Array<
DrawerItem
> = [];
Next, in constructor I have the following lines
constructor(private router: Router) {
const routes: any[] = router.config;
routes.forEach(route => {
this
.items.push({
text: route.text,
path: route.path ? route.path :
''
});
});
}
It says that 'path' does not exist in type DrawerItem. Why? All Kendo examples are referencing to this property. Also, router does not contain the 'text' property. I cannot map routes with the Drawer component.
The official DrawerItem doc is at https://www.telerik.com/kendo-angular-ui/components/layout/api/DrawerItem/. It seems that DrawerItem doesn't contain the 'path' property! Somehow the examples are outdated or I'm making mistakes in undarstanding.
Thank you.