contact-routing.module.ts 520 B

123456789101112
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. const routes: Routes = [
  4. {path: 'list', loadChildren: () => import('./contact-list/contact-list.module').then(mod => mod.ContactListPageModule)},
  5. {path: 'detail/:id', loadChildren: () => import('./contact-detail/contact-detail.module').then(mod => mod.ContactDetailPageModule)},
  6. ];
  7. @NgModule({
  8. imports: [RouterModule.forChild(routes)],
  9. exports: [RouterModule]
  10. })
  11. export class ContactRoutingModule { }