chore: base layout

This commit is contained in:
tibing 2017-04-13 14:24:23 +03:00
parent 1fb884a633
commit d82d691681
19 changed files with 195 additions and 44 deletions

View file

@ -0,0 +1,23 @@
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { PagesComponent } from './pages.component';
import { DashboardComponent } from './dashboard/dashboard.component';
const routes: Routes = [
{
path: '',
component: PagesComponent,
children: [
{path: '', redirectTo: 'dashboard', pathMatch: 'full'},
{path: 'dashboard', component: DashboardComponent}
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class PagesRoutingModule {
}