dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_ProjectModule cluster_ProjectModule_declarations cluster_ProjectModule_imports AddEntityComponent AddEntityComponent ProjectModule ProjectModule AddEntityComponent->ProjectModule AddFilePage AddFilePage AddFilePage->ProjectModule AddProgramsComponent AddProgramsComponent AddProgramsComponent->ProjectModule CategorySelectComponent CategorySelectComponent CategorySelectComponent->ProjectModule CreateProjectPage CreateProjectPage CreateProjectPage->ProjectModule ItemListHeaderComponent ItemListHeaderComponent ItemListHeaderComponent->ProjectModule LearningResourcesPage LearningResourcesPage LearningResourcesPage->ProjectModule LinkLearningResourcesComponent LinkLearningResourcesComponent LinkLearningResourcesComponent->ProjectModule ProjectDetailsComponent ProjectDetailsComponent ProjectDetailsComponent->ProjectModule ProjectEditPage ProjectEditPage ProjectEditPage->ProjectModule ProjectListingComponent ProjectListingComponent ProjectListingComponent->ProjectModule ProjectOperationPage ProjectOperationPage ProjectOperationPage->ProjectModule ProjectTemplatePage ProjectTemplatePage ProjectTemplatePage->ProjectModule SyncPage SyncPage SyncPage->ProjectModule TaskViewPage TaskViewPage TaskViewPage->ProjectModule CoreModule CoreModule CoreModule->ProjectModule SharedModule SharedModule SharedModule->ProjectModule
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { RouterModule, Routes } from '@angular/router';
import { CoreModule } from '../core/core.module';
import { SharedModule } from '../shared/shared.module';
import { ProjectListingComponent } from '../project/project-listing/project-listing.component';
import { LearningResourcesPage } from './learning-resources/learning-resources.page';
import { ProjectEditPage } from './project-edit/project-edit.page';
import { ProjectOperationPage } from './project-operation/project-operation.page';
import { SyncPage } from './sync/sync.page';
import { TaskViewPage } from './task-view/task-view.page';
import { RouterLinks } from '@app/app/app.constant';
import { LinkLearningResourcesComponent } from './link-learning-resources/link-learning-resources.component';
import { AddEntityComponent } from './add-entity/add-entity.component';
import { AddProgramsComponent } from './add-programs/add-programs.component';
import { CreateProjectPage } from './create-project/create-project.page';
import { CategorySelectComponent } from './category-select/category-select.component';
import { CommonConsumptionModule } from '@project-sunbird/common-consumption';
import { PipesModule } from '@app/pipes/pipes.module';
import { ProjectTemplatePage } from './project-template/project-template.page';
import { ItemListHeaderComponent } from './item-list-header/item-list-header.component'
import { ProjectDetailsComponent } from './project-details/project-details.component';
import { AddFilePage } from './add-file/add-file.page';

const routes: Routes = [
  {
    path: '',
    component: ProjectListingComponent
  },
  {
    path: `${RouterLinks.DETAILS}`,
    component: ProjectDetailsComponent
  },
  {
    path: `${RouterLinks.TASK_VIEW}/:id/:taskId`,
    component: TaskViewPage
  },
  {
    path: `${RouterLinks.LEARNING_RESOURCES}/:id/:taskId`,
    component: LearningResourcesPage
  },
  {
    path: `${RouterLinks.LEARNING_RESOURCES}/:id`,
    component: LearningResourcesPage
  },
  {
    path: `${RouterLinks.PROJECT_EDIT}/:id`,
    component: ProjectEditPage
  },
  {
    path: `${RouterLinks.PROJECT_OPERATION}/:id`,
    component: ProjectOperationPage
  },
  {
    path: `${RouterLinks.CREATE_PROJECT}`,
    component: CreateProjectPage
  }, {
    path: RouterLinks.SYNC,
    component: SyncPage
  },
  {
    path: `${RouterLinks.ATTACHMENTS}/:id`,
    loadChildren: './attachment-listing/attachment-listing.module#AttachmentListingPageModule'
  },
  {
    path: `${RouterLinks.TEMPLATE}/:id`,
    component: ProjectTemplatePage
  },
  {
    path: `${RouterLinks.PROJECT_TEMPLATE}/:id`,
    loadChildren: './project-templateview/project-templateview.module#ProjectTemplateviewPageModule'
  },
  {
    path: `${RouterLinks.ADD_FILE}/:id`,
    component:AddFilePage
  },
];

@NgModule({
  declarations: [ProjectListingComponent, ProjectEditPage, 
    ProjectOperationPage, LearningResourcesPage, SyncPage, TaskViewPage, 
    LinkLearningResourcesComponent, AddEntityComponent, AddProgramsComponent, CreateProjectPage, 
    CategorySelectComponent,ProjectTemplatePage, ItemListHeaderComponent, ProjectDetailsComponent, AddFilePage],
  entryComponents: [LinkLearningResourcesComponent, AddEntityComponent, 
    AddProgramsComponent, CategorySelectComponent],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    IonicModule,
    CoreModule,
    SharedModule,
    TranslateModule.forChild(), 
    RouterModule.forChild(routes),
    CommonConsumptionModule,
    PipesModule
  ]
})
export class ProjectModule { }

results matching ""

    No results matching ""