Run npm i ngx-dynamic-breadcrumbs
to install.
- Import BreadcrumbsModule into your root module.
- Create a resolver, inject BreadcrumbsService. If you need some data from back-end, fetch it, and using rxjs tap operator, set breadcrumbs array. If you want to hide breadcrumbs for specific routes, use clear() method of BreadcrumbsService.
- Add the resolver to route