Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Created September 15, 2019 16:30
Show Gist options
  • Save alexytiger/01652f9c409aa9e74669835614347d33 to your computer and use it in GitHub Desktop.
Save alexytiger/01652f9c409aa9e74669835614347d33 to your computer and use it in GitHub Desktop.
const routes: Routes = [
{
path: '',
redirectTo: 'products',
pathMatch: 'full',
},
{
path: 'products',
component: fromComponents.MarketplaceHomeComponent,
children: [
{
path: '',
component: fromContainers.ViewProductCollectionComponent,
canActivate: [guards.ProductsLoadedGuard],
children: [
{
path: ':id',
component: fromContainers.ViewPurchaseContractComponent,
},
{
path: '',
component: fromComponents.ProductDetailHomeComponent
},
]
},
{
path: 'make/new',
component: fromContainers.NewPurchaseContractComponent,
pathMatch: 'full',
},
]
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment