Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. import { NgModule } from '@angular/core';
  2. import { CommonModule } from '@angular/common';
  3. import { FormsModule } from '@angular/forms';
  4. import { Routes, RouterModule } from '@angular/router';
  5. import { IonicModule } from '@ionic/angular';
  6. import { MenuPage } from './menu.page';
  7.  
  8. const routes: Routes = [
  9. {
  10. path: '',
  11. component: MenuPage,
  12. children: [
  13. { path: 'programa', loadChildren: './pages/programa/programa.module#ProgramaPageModule'},
  14. { path: 'disertantes', loadChildren: './pages/disertantes/disertantes.module#DisertantesPageModule'}
  15. ]
  16. }
  17. ];
  18.  
  19. @NgModule({
  20. imports: [
  21. CommonModule,
  22. FormsModule,
  23. IonicModule,
  24. RouterModule.forChild(routes)
  25. ],
  26. declarations: [MenuPage]
  27. })
  28. export class MenuPageModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement