fix(documents): fix #771

This commit is contained in:
Alexander Zhukov 2017-02-28 14:49:45 +03:00
parent 9bd7dbded0
commit 78c70aec2e
3 changed files with 1081 additions and 73 deletions

View file

@ -69,7 +69,7 @@ import { routing } from './new.routing';
NewComponent
]
})
export default class NewModule {}
export class NewModule {}
```
<br>
@ -124,8 +124,8 @@ const routes: Routes = [
component: Pages,
children: [
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: 'dashboard', loadChildren: () => System.import('./dashboard/dashboard.module') },
{ path: 'new', loadChildren: () => System.import('./new/new.module') }
{ path: 'dashboard', loadChildren: 'app/pages/dashboard/dashboard.module#DashboardModule' },
{ path: 'new', loadChildren: 'app/pages/new/new.module#NewModule' }
]
}
];