-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breadcrumb does not work inside child components #8
Comments
FYI I'm working around this by using the following code in
|
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. |
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.
The text was updated successfully, but these errors were encountered: