Skip to content

Commit

Permalink
[*] StoreRoutingModule : added breadcrumb keys
Browse files Browse the repository at this point in the history
  • Loading branch information
svasorcery committed Sep 27, 2018
1 parent 45e9c93 commit ff6dc16
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions LegendaryStore/ClientApp/src/app/store/store.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,28 @@ const routes: Routes = [
{
path: ':categoryId',
resolve: { category: CategoryResolver },
data: { breadcrumb: { key: 'category', values: ['name'] } },
children: [
{
path: '',
component: ProductsListComponent
},
{
path: 'products',
path: 'products/create',
component: ProductCreateComponent
},
{
path: 'products/:id',
resolve: { product: ProductResolver },
data: { breadcrumb: { key: 'product', values: ['product.name'] } },
children: [
{
path: 'create',
component: ProductCreateComponent
path: '',
component: ProductDetailsComponent
},
{
path: ':id',
resolve: { product: ProductResolver },
children: [
{
path: '',
component: ProductDetailsComponent
},
{
path: 'edit',
component: ProductEditComponent
}
]
path: 'edit',
component: ProductEditComponent
}
]
}
Expand Down

0 comments on commit ff6dc16

Please sign in to comment.