dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_MenuPageModule cluster_MenuPageModule_declarations cluster_MenuPageModule_providers MenuPage MenuPage MenuPageModule MenuPageModule MenuPage->MenuPageModule BookService BookService BookService->MenuPageModule FileUploadService FileUploadService FileUploadService->MenuPageModule

File

src/app/menu/menu.module.ts

Declarations

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';

import { IonicModule } from '@ionic/angular';

import { MenuPage } from './menu.page';
import { BookService } from '../services/book/book.service';
import { FileUploadService } from '../services/file-upload/file-upload.service';

const routes: Routes = [
  {
    path: '',
    component: MenuPage,
    children: [
      { path: '', redirectTo: 'home', pathMatch: 'full' },
      { path: 'feedback', loadChildren: '../feedback/feedback.module#FeedbackPageModule' },
      { path: 'booksearch', loadChildren: '../booksearch/booksearch.module#BooksearchPageModule' },
      {
        path: 'requestbook',
        loadChildren: '../requestbook/requestbook.module#RequestbookPageModule'
      },
      { path: 'home', loadChildren: '../home/home.module#HomePageModule' },
      { path: 'account', loadChildren: '../account/account.module#AccountPageModule' },
      { path: 'info', loadChildren: '../LibraryInfo/info/info.module#InfoPageModule' },
      { path: 'transfer', loadChildren: '../transfer/transfer.module#TransferPageModule' }
    ]
  }
];

@NgModule({
  imports: [CommonModule, FormsModule, IonicModule, RouterModule.forChild(routes)],
  declarations: [MenuPage],
  providers: [BookService, FileUploadService]
})
export class MenuPageModule {}

result-matching ""

    No results matching ""