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

Home link not displaying as default in front of breadcrumbs

Open vcarrin1 opened this issue 6 years ago • 1 comments

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 {}

vcarrin1 avatar Mar 12 '18 16:03 vcarrin1

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

pwarelis avatar Mar 16 '18 18:03 pwarelis