Open Bidthedog opened 6 years ago
FYI I'm working around this by using the following code in app.component.html
:
<breadcrumb [allowBootstrap]="true" [hidden]="true"></breadcrumb>
I'm facing the same issue facing Bidthedog. I try to insert it into a child component, But no success, it doesn't work. As I route to any other page; Breadcrumb starts working, showing all paths perfectly. But again when I refresh page breadcrumbs gone. On first they don't get initialize automatically.
Angular 4.4.5, angular CLI 1.4.7.
I've just tried to install this component - it seems to work fine when I put it inside
app.component.html
, but as soon as I try to insert it into any child component, it doesn't show. Routing as follows:(Using
children
of the root path may look a bit weird, but I need my routing this way as I query it for my site-map.)AboutComponent
markup as follows:Nothing displays, though the component seems to render (the markup shows when I inspect in the browser, but has no content).
Interestingly, if I put
<breadcrumb [allowBootstrap]="true"></breadcrumb>
insideapp.component.html
, but ALSO insert it into a child component, it shows twice (as I would expect). The interesting thing here is that theapp.component.html
component markup seems to be required before you can use it inside child components:app.component.html
looks like this:The use-case for this is that I don't want to show the breadcrumbs on every page - in fact, I want to show them on all pagers except the home page due to the layout I'm using for that page.