Created
September 15, 2019 16:30
-
-
Save alexytiger/01652f9c409aa9e74669835614347d33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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