We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b891114 commit d7df6feCopy full SHA for d7df6fe
src/breadcrumb/app-breadcrumb.service.ts
@@ -28,10 +28,12 @@ export class AppBreadcrumbService {
28
if (route.outlet === 'primary') {
29
const routeSnapshot = route.snapshot;
30
url += '/' + routeSnapshot.url.map(segment => segment.path).join('/');
31
- breadcrumbs.push({
32
- label: route.snapshot.data,
33
- url: url
34
- });
+ if (route.routeConfig.data && route.routeConfig.data.title) {
+ breadcrumbs.push({
+ label: route.snapshot.data,
+ url: url
35
+ });
36
+ }
37
currentRoute = route;
38
}
39
});
0 commit comments