Commit be8b1fee by Aino Leppänen

Old moya module to info

1 parent 86220215
......@@ -4,28 +4,6 @@ import { Routes, RouterModule } from '@angular/router';
import { LoginComponent } from './pages/login/login.component';
import { InfoComponent } from './pages/info/info.component';
/* const appRoutes: Routes = [
{
path: 'info',
children: [
{path: '', component: InfoMenuComponent, outlet: 'left-menu'},
{path: '', pathMatch: 'full', component: OldMoyaComponent},
{path: 'old', component: OldMoyaComponent},
{path: 'viplist', component: ViplistComponent},
]
},
{
path: 'admin',
children: [
{path: '', component: AdminMenuComponent, outlet: 'left-menu'},
{path: '', pathMatch: 'full', component: AdminComponent},
{path: 'old', component: OldMoyaComponent},
]
},
{path: 'old', pathMatch: 'prefix', component: OldMoyaComponent},
]; */
const APP_ROUTES: Routes = [
{ path: 'info', loadChildren: 'app/pages/info/info.module#InfoModule' },
{ path: 'admin', loadChildren: 'app/pages/admin/admin.module#AdminModule' },
......@@ -38,17 +16,11 @@ const APP_ROUTES: Routes = [
@NgModule({
imports: [
RouterModule.forRoot(
APP_ROUTES,
/* {
enableTracing: true, // <-- debugging purposes only
} */
APP_ROUTES
)
],
exports: [
RouterModule
],
providers: [
]
})
export class AppRoutingModule { }
......@@ -15,8 +15,3 @@ const routes: Routes = [
exports: [RouterModule]
})
export class AdminRoutingModule { }
/* {path: '', component: AdminMenuComponent, outlet: 'left-menu'},
{path: '', pathMatch: 'full', component: AdminComponent},
{path: 'old', component: OldMoyaComponent}, */
......@@ -7,8 +7,8 @@ import { InfoComponent } from './info.component';
const routes: Routes = [
{ path: '', component: InfoMenuComponent, outlet: 'left-menu' },
/* { path: '', pathMatch: 'full', component: OldMoyaComponent },
{ path: 'old', component: OldMoyaComponent }, */
{ path: '', pathMatch: 'full', component: OldMoyaComponent },
{ path: 'old', component: OldMoyaComponent },
{ path: 'viplist', component: ViplistComponent }
];
......
import { OldMoyaModule } from './../old-moya/old-moya.module';
import { ViplistComponent } from './../../viplist/viplist.component';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
......@@ -11,6 +12,7 @@ import { LeftMenuModule } from '../../menu/left-menu/left-menu.module';
CommonModule,
InfoRoutingModule,
LeftMenuModule,
OldMoyaModule
],
declarations: [InfoComponent, InfoMenuComponent, ViplistComponent]
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!