hggeorgiev / ng2-breadcrumbs

A breadcrumb service for the Angular 7 router
MIT License
60 stars 35 forks source link

Persisting prefix breadcrumb #12

Closed cmmartin0275 closed 6 years ago

cmmartin0275 commented 6 years ago

Got this up and running, but wanted to add a prefixed Home breadcrumb. After I added it and all looked good but then I realized the path was still just '/'. I went back in and changed it to what is below. Then I had 2 Home breadcrumbs. I tried clearing cache, removing all references in the project and re-adding them, uninstalling and reinstalling the npm package and there were STILL 2 Home breadcrumbs. For "testing", I tried changing the path a couple more times and now I have 5 Home breadcrumbs.

this.breadcrumbsService.storePrefixed({label: 'Home' , url: '/dashboard', params: []});

cmmartin0275 commented 6 years ago

Finally went away. Just took about an hour? The internet is weird.