Skip to content

Instantly share code, notes, and snippets.

@thisiszoaib
Created November 28, 2020 06:45
Show Gist options
  • Select an option

  • Save thisiszoaib/5254a8f516b9e9e7cbd9dfeee9f3e55e to your computer and use it in GitHub Desktop.

Select an option

Save thisiszoaib/5254a8f516b9e9e7cbd9dfeee9f3e55e to your computer and use it in GitHub Desktop.
Tabs 3
const routes: Routes = [
{
path: '',
pathMatch: 'full',
redirectTo: 'one',
},
{
path: 'one',
loadChildren: () =>
import('./section-one/section-one.module').then(
(m) => m.SectionOneModule
),
},
{
path: 'two',
loadChildren: () =>
import('./section-two/section-two.module').then(
(m) => m.SectionTwoModule
),
},
{
path: 'three',
loadChildren: () =>
import('./section-three/section-three.module').then(
(m) => m.SectionThreeModule
),
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment