This commit is contained in:
crusader 2018-04-12 12:22:38 +09:00
parent 65808d9b67
commit 11b4fcfaf2
2 changed files with 5 additions and 2 deletions

View File

@ -3,8 +3,8 @@ import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
import { AuthGuard } from './commons/guard/auth.guard'; import { AuthGuard } from './commons/guard/auth.guard';
const routes: Routes = [ const routes: Routes = [
// { path: '', loadChildren: './pages/pages.module#PagesModule', canActivate: [AuthGuard] }, { path: '', loadChildren: './pages/pages.module#PagesModule', canActivate: [AuthGuard] },
{ path: '', loadChildren: './pages/pages.module#PagesModule'}, // { path: '', loadChildren: './pages/pages.module#PagesModule'},
{ path: 'auth', loadChildren: './pages/auth/auth-page.module#AuthPageModule' }, { path: 'auth', loadChildren: './pages/auth/auth-page.module#AuthPageModule' },
// { path: 'errors', loadChildren: './pages/errors/errors-page.module#ErrorsPageModule' }, // { path: 'errors', loadChildren: './pages/errors/errors-page.module#ErrorsPageModule' },
]; ];

View File

@ -15,6 +15,8 @@ import { AuthGuard } from './commons/guard/auth.guard';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MemberModule } from 'packages/member/member.module';
@NgModule({ @NgModule({
imports: [ imports: [
BrowserModule, BrowserModule,
@ -26,6 +28,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
AppRPCModule, AppRPCModule,
AppRESTModule, AppRESTModule,
AppLoggerModule, AppLoggerModule,
MemberModule,
], ],
declarations: [ declarations: [
AppComponent, AppComponent,