ngx-breadcrumbs icon indicating copy to clipboard operation
ngx-breadcrumbs copied to clipboard

Templating causes the breadcrumbs to not render

Open cha55son opened this issue 7 years ago • 0 comments

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.

cha55son avatar Dec 23 '17 16:12 cha55son