Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import {NgModule} from '@angular/core';
  2. import {Routes, RouterModule} from '@angular/router';
  3. import {ComponentModuleOneProxyComponent} from './component-module-one-proxy/component-module-one-proxy.component';
  4. import { ModuleOneModule } from './module-one/module-one.module';
  5.  
  6. const routes: Routes = [
  7. {
  8. path: '',
  9. outlet: 'module-one-outlet',
  10. component: ComponentModuleOneProxyComponent,
  11. children: [
  12. {
  13. path: '',
  14. loadChildren: () => ModuleOneModule
  15. }
  16. ],
  17. },
  18. {
  19. path: 'module-two',
  20. loadChildren: 'app/module-two/module-two.module#ModuleTwoModule'
  21. },
  22. ];
  23.  
  24. @NgModule({
  25. imports: [RouterModule.forRoot(routes)],
  26. exports: [RouterModule]
  27. })
  28. export class AppRoutingModule {
  29. }
  30.  
  31. Error: Uncaught (in promise): TypeError: Cannot read property 'routes' of undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement