不要使用面包屑,一切都会显示,但链接检查不起作用。负责此检查的变量始终为true。 https://www.npmjs.com/package/angular2-crumbs
<breadcrumb #parent>
<nav>
<div class="nav-wrapper">
<div class="col s12">
<ng-template ngFor let-route [ngForOf]="parent.breadcrumbs">
++
{{route.url}}
++
{{route.terminal}}
++
<a *ngIf="!route.terminal" class="breadcrumb" href="" [routerLink]="[route.url]">{{ route.displayName }}</a>
<span *ngIf="route.terminal" class="breadcrumb">{{ route.displayName }}</span>
{{route | json}}
</ng-template>
</div>
</div>
</nav>
</breadcrumb>