Guest User

Untitled

a guest
Dec 18th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. bootstrap: [AppComponent]
  2.  
  3. const appRoutes: Routes = [
  4. {path: '', loadChildren: 'src/app/components/entrar-app/entrarapp.module#EntrarModule'},
  5. {path: 'home', loadChildren: 'src/app/components/home/home.module#HomeModule'},
  6. ];
  7.  
  8. <div class="background-total">
  9. <router-outlet></router-outlet>
  10. </div>
  11.  
  12. const routes: Routes = [
  13. {
  14. path: '',
  15. component: EntrarAppComponent,
  16. },
  17. {path: '', loadChildren: 'src/app/components/entrar-app/login/login.module#LoginModule'},
  18. ];
  19.  
  20. {
  21. path: '',
  22. component: EntrarAppComponent,
  23. },
  24. {path: '', redirectTo: 'login'},
  25. {path: 'login', loadChildren: 'src/app/components/entrar-app/login/login.module#LoginModule' }
  26. ];
Add Comment
Please, Sign In to add comment