dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_TabsPageModule cluster_TabsPageModule_declarations TabsPage TabsPage TabsPageModule TabsPageModule TabsPage->TabsPageModule

File

src/app/tabs/tabs.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 { TabsPage } from './tabs.page';
import { TranslateModule } from '@ngx-translate/core';
import { RouterLinks } from '../app.constant';
import { UserTypeSpecificTabGuard } from './usertype-specific-tab.guard';

const routes: Routes = [
  {
    path: '',
    component: TabsPage,
    children: [
      {
        path: 'home',
        children: [
          {
            path: '',
            loadChildren: '../home/home.module#HomePageModule'
          }
        ]
      },
      {
        path: 'search',
        children: [
          {
            path: '',
            loadChildren: '../search/search.module#SearchPageModule'
          }
        ]
      },
      {
        path: 'resources',
        canActivate: [UserTypeSpecificTabGuard],
        children: [
          {
            path: '',
            loadChildren: '../resources/resources.module#ResourcesModule'
          }
        ]
      },
      {
        path: 'courses',
        children: [
          {
            path: '',
            loadChildren: '../courses/courses.module#CoursesPageModule'
          }
        ]
      },
      {
        path: 'guest-profile',
        children: [
          {
            path: '',
            loadChildren: '../profile/guest-profile/guest-profile.module#GuestProfilePageModule'
          }
        ]
      },
      {
        path: 'profile',
        children: [
          {
            path: '',
            loadChildren: '../profile/profile.module#ProfilePageModule'
          }
        ]
      },
      {
        path: 'download-manager',
        children: [
          {
            path: '',
            loadChildren: '../download-manager/download-manager.module#DownloadManagerPageModule'
          }
        ]
      }
    ]
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes),
    TranslateModule.forChild()
  ],
  declarations: [TabsPage],
  providers: [UserTypeSpecificTabGuard]
})
export class TabsPageModule { }

results matching ""

    No results matching ""