import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LeaderboardsComponent } from './leaderboards.component';
import { ButtonsComponent } from './buttons.component';
import { CardsComponent } from './cards.component';
import { FormsComponent } from './forms.component';
import { ModalsComponent } from './modals.component';
import { SocialButtonsComponent } from './social-buttons.component';
import { SwitchesComponent } from './switches.component';
import { TablesComponent } from './tables.component';
import { TabsComponent } from './tabs.component';
const routes: Routes = [
{
path: '',
data: {
title: 'Components'
},
children: [
path: 'leaderboards',
component: LeaderboardsComponent,
title: 'Leaderboards'
}
path: 'buttons',
component: ButtonsComponent,
title: 'Buttons'
path: 'cards',
component: CardsComponent,
title: 'Cards'
path: 'forms',
component: FormsComponent,
title: 'Forms'
path: 'modals',
component: ModalsComponent,
title: 'Modals'
path: 'social-buttons',
component: SocialButtonsComponent,
title: 'Social buttons'
path: 'switches',
component: SwitchesComponent,
title: 'Switches'
path: 'tables',
component: TablesComponent,
title: 'Tables'
path: 'tabs',
component: TabsComponent,
title: 'Tabs'
]
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ComponentsRoutingModule {}