Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const appRoutes: Routes = [
- {
- path: '',
- redirectTo: 'home',
- pathMatch: 'full'
- },
- //Site routes goes here
- {
- path: 'home',
- component: SiteLayoutComponent,
- children: [
- {
- path: '',
- component: HomeComponent
- }
- ]
- },
- //App routes goes here
- {
- path: 'app',
- component: AppLayoutComponent,
- children: [
- { path: 'contact', component: ContactComponent }
- ]
- },
- //No layout routes
- {
- path: '**', redirectTo: 'home'
- }
Add Comment
Please, Sign In to add comment