Skip to content
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

Home link not displaying as default in front of breadcrumbs #11

Open
vcarrin1 opened this issue Mar 12, 2018 · 1 comment
Open

Home link not displaying as default in front of breadcrumbs #11

vcarrin1 opened this issue Mar 12, 2018 · 1 comment

Comments

@vcarrin1
Copy link

Hi,

I implemented the breadcrumbs in my application, everything is working as expected except I cannot get the Home link to display as default in front of each set of breadcrumbs.

Expected Result
Home / Physical Objects / Details

Actual Result
Physical Objects / Details

Router Config looks like this.

Home Route

export const HOME_ROUTE: Route = {
path: '',
component: HomeComponent,
data: {
pageTitle: 'dx Portal',
breadcrumbs: 'Home'
},
};

Physical Objects Route

export const physicalObjectRoute: Routes = [
{
path: 'physical-object',
data: {
pageTitle: 'Physical Objects',
breadcrumbs: 'Physical Objects'
},
children: [
{
path: '',
component: PhysicalObjectComponent,
},
{
path: ':id',
component: PhysicalObjectDetailComponent,
data: {
pageTitle: 'Physical Objects',
breadcrumbs: 'Details'
},
}
]
}
];

RouterModule.forChild(physicalObjectRoute)

app.routing.module

const LAYOUT_ROUTES = [
HOME_ROUTE,
];

@NgModule({
imports: [
RouterModule.forRoot(LAYOUT_ROUTES, { useHash: true })
],
exports: [
RouterModule
]
})
export class DxPortalAppRoutingModule {}

@pwarelis
Copy link

The process is described in the last section of the documentation.
Look under API / postProcess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants