use forRoot on app router, whitelist ngx on server

This commit is contained in:
William Welling
2017-09-26 15:13:36 -05:00
parent 3b90d6fb43
commit bd25a489d0
3 changed files with 10 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import { PageNotFoundComponent } from './pagenotfound/pagenotfound.component';
@NgModule({
imports: [
RouterModule.forChild([
RouterModule.forRoot([
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'home', loadChildren: './+home/home.module#HomeModule' },
{ path: 'communities', loadChildren: './+community-page/community-page.module#CommunityPageModule' },
@@ -15,4 +15,6 @@ import { PageNotFoundComponent } from './pagenotfound/pagenotfound.component';
])
],
})
export class AppRoutingModule { }
export class AppRoutingModule {
}