Skip to content

Instantly share code, notes, and snippets.

@owrrpon
Last active May 26, 2021 10:02
Show Gist options
  • Save owrrpon/5c7fe9276dd29b25f1c0596f815f6960 to your computer and use it in GitHub Desktop.
Save owrrpon/5c7fe9276dd29b25f1c0596f815f6960 to your computer and use it in GitHub Desktop.
angular-module-level-routing-container
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