Last active
May 26, 2021 10:02
-
-
Save owrrpon/5c7fe9276dd29b25f1c0596f815f6960 to your computer and use it in GitHub Desktop.
angular-module-level-routing-container
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 = [ | |
{ | |
//Default redirection to the first route. | |
path: '', | |
redirectTo: 'page-a1', | |
pathMatch: 'full' | |
}, | |
{ | |
path:'', | |
component: FeatureModuleAContainerComponent, | |
children: [ | |
//Loading the page components for each page route. | |
{ | |
path: 'page-a1', | |
component: PageA1Component | |
}, | |
{ | |
path: 'page-a2', | |
component: PageA2Component | |
}, | |
{ | |
path: 'page-a3', | |
component: PageA3Component | |
}, | |
{ | |
path: 'page-a4', | |
component: PageA4Component | |
} | |
] | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment