feat(ui-features): complete the tabs

This commit is contained in:
Alexander Zhukov 2017-05-11 16:25:39 +03:00
parent 78e376bb5a
commit e8dc2b9c72
4 changed files with 48 additions and 5 deletions

View file

@ -7,7 +7,7 @@ import { GridComponent } from './grid/grid.component';
import { IconsComponent } from './icons/icons.component';
import { ModalsComponent } from './modals/modals.component';
import { TypographyComponent } from './typography/typography.component';
import { TabsComponent } from './tabs/tabs.component';
import { TabsComponent, Tab1Component, Tab2Component } from './tabs/tabs.component';
const routes: Routes = [{
path: '',
@ -30,6 +30,17 @@ const routes: Routes = [{
}, {
path: 'tabs',
component: TabsComponent,
children: [{
path: '',
redirectTo: 'tab1',
pathMatch: 'full',
}, {
path: 'tab1',
component: Tab1Component,
}, {
path: 'tab2',
component: Tab2Component,
}],
}],
}];