peterbsmyth / ngx-breadcrumbs

Angular 4+ routing breadcrumbs
MIT License
59 stars 43 forks source link

Templating causes the breadcrumbs to not render #4

Open cha55son opened 6 years ago

cha55son commented 6 years ago

The following will cause the breadcrumbs to not display:

<div *ngIf="someTrueValue">
    <mc-breadcrumbs></mc-breadcrumbs>
</div>

The workaround is to use the hidden attribute:

<div [hidden]="!someTrueValue">
    <mc-breadcrumbs></mc-breadcrumbs>
</div>

I'm guessing the issue lies with the breadcrumbs being within a template but I haven't dug in far enough to know for sure. I've only used the *ngIf but I would guess that the issue would be present within any template.