I'm trying to implement breadcrumb in Angular 2 and referring the below post https://stackoverflow.com/a/38808735/5327791
But I'm getting the error "Property 'breadcrumb' does not exist on type '{ [name: string]: any; }'" at line- label: route.snapshot.data.breadcrumb.
I see that data is not having breadcrumb property.
Looking badly for help
Asked
Active
Viewed 351 times
1

Community
- 1
- 1

Protagonist
- 1,649
- 7
- 34
- 56
-
The error say that you are trying to get the property 'breadcrumb' of a string. If you show more code (your component and template) maybe we could help. – mickdev Feb 08 '17 at 20:25
-
@mickdev I'm following the same example which I mentioned and there is and the plunker link is https://plnkr.co/edit/YtJDZlA1mHtjA9ZmMHB3?p=preview – Protagonist Feb 09 '17 at 03:25
-
In `BreadcrumbsComponent`, this line `label: route.snapshot.data.breadcrumb,` get the data provided in the `app.routes.ts` and `app/user/user.routes.ts` files. You should confirm that everything is ok (console log route.snapshot.data for example). Also, you should provide the plunker with your actual code so maybe someone will see what you are missing – mickdev Feb 09 '17 at 08:08