dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_SharedFeatureModule cluster_SharedFeatureModule_exports cluster_SharedFeatureModule_declarations cluster_SharedFeatureModule_imports BatchInfoComponent BatchInfoComponent SharedFeatureModule SharedFeatureModule BatchInfoComponent->SharedFeatureModule CertPreviewPopupComponent CertPreviewPopupComponent CertPreviewPopupComponent->SharedFeatureModule CollectionPlayerComponent CollectionPlayerComponent CollectionPlayerComponent->SharedFeatureModule ConfirmationPopupComponent ConfirmationPopupComponent ConfirmationPopupComponent->SharedFeatureModule ContentPlayerComponent ContentPlayerComponent ContentPlayerComponent->SharedFeatureModule DashboardComponent DashboardComponent DashboardComponent->SharedFeatureModule FrameworkCatLabelTranslatePipe FrameworkCatLabelTranslatePipe FrameworkCatLabelTranslatePipe->SharedFeatureModule GlobalConsentPiiComponent GlobalConsentPiiComponent GlobalConsentPiiComponent->SharedFeatureModule OnboardingUserSelectionComponent OnboardingUserSelectionComponent OnboardingUserSelectionComponent->SharedFeatureModule OtpPopupComponent OtpPopupComponent OtpPopupComponent->SharedFeatureModule ProfileFrameworkPopupComponent ProfileFrameworkPopupComponent ProfileFrameworkPopupComponent->SharedFeatureModule SsoMergeConfirmationComponent SsoMergeConfirmationComponent SsoMergeConfirmationComponent->SharedFeatureModule TermsAndConditionsPopupComponent TermsAndConditionsPopupComponent TermsAndConditionsPopupComponent->SharedFeatureModule UserLocationComponent UserLocationComponent UserLocationComponent->SharedFeatureModule UserOnboardingComponent UserOnboardingComponent UserOnboardingComponent->SharedFeatureModule ValidateTeacherIdentifierPopupComponent ValidateTeacherIdentifierPopupComponent ValidateTeacherIdentifierPopupComponent->SharedFeatureModule YearOfBirthComponent YearOfBirthComponent YearOfBirthComponent->SharedFeatureModule BatchInfoComponent BatchInfoComponent SharedFeatureModule->BatchInfoComponent CertPreviewPopupComponent CertPreviewPopupComponent SharedFeatureModule->CertPreviewPopupComponent CollectionPlayerComponent CollectionPlayerComponent SharedFeatureModule->CollectionPlayerComponent ConfirmationPopupComponent ConfirmationPopupComponent SharedFeatureModule->ConfirmationPopupComponent ContentPlayerComponent ContentPlayerComponent SharedFeatureModule->ContentPlayerComponent DashboardComponent DashboardComponent SharedFeatureModule->DashboardComponent GlobalConsentPiiComponent GlobalConsentPiiComponent SharedFeatureModule->GlobalConsentPiiComponent OnboardingUserSelectionComponent OnboardingUserSelectionComponent SharedFeatureModule->OnboardingUserSelectionComponent OtpPopupComponent OtpPopupComponent SharedFeatureModule->OtpPopupComponent ProfileFrameworkPopupComponent ProfileFrameworkPopupComponent SharedFeatureModule->ProfileFrameworkPopupComponent SsoMergeConfirmationComponent SsoMergeConfirmationComponent SharedFeatureModule->SsoMergeConfirmationComponent TermsAndConditionsPopupComponent TermsAndConditionsPopupComponent SharedFeatureModule->TermsAndConditionsPopupComponent UserLocationComponent UserLocationComponent SharedFeatureModule->UserLocationComponent UserOnboardingComponent UserOnboardingComponent SharedFeatureModule->UserOnboardingComponent ValidateTeacherIdentifierPopupComponent ValidateTeacherIdentifierPopupComponent SharedFeatureModule->ValidateTeacherIdentifierPopupComponent YearOfBirthComponent YearOfBirthComponent SharedFeatureModule->YearOfBirthComponent CoreModule CoreModule CoreModule->SharedFeatureModule LocationModule LocationModule LocationModule->SharedFeatureModule PlayerHelperModule PlayerHelperModule PlayerHelperModule->SharedFeatureModule SharedModule SharedModule SharedModule->SharedFeatureModule TelemetryModule TelemetryModule TelemetryModule->SharedFeatureModule
import { CoreModule } from '@sunbird/core';
import { SharedModule } from '@sunbird/shared';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {
  ProfileFrameworkPopupComponent, TermsAndConditionsPopupComponent,
  OtpPopupComponent, BatchInfoComponent, SsoMergeConfirmationComponent, ValidateTeacherIdentifierPopupComponent,
  UserLocationComponent, UserOnboardingComponent, OnboardingUserSelectionComponent,
  ConfirmationPopupComponent, CertPreviewPopupComponent, ContentPlayerComponent, CollectionPlayerComponent, YearOfBirthComponent
} from './components';
import { TelemetryModule } from '@sunbird/telemetry';
import { RouterModule } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { SuiSelectModule, SuiModalModule, SuiAccordionModule, SuiPopupModule, SuiDropdownModule,
  SuiProgressModule, SuiRatingModule, SuiCollapseModule, SuiDimmerModule } from 'ng2-semantic-ui-v9';
import { GlobalConsentPiiComponent } from './components/global-consent-pii/global-consent-pii.component';
import { CsModule } from '@project-sunbird/client-services';
import { CsLibInitializerService } from '../../service/CsLibInitializer/cs-lib-initializer.service';
import { PlayerHelperModule } from '@sunbird/player-helper';
import { CommonConsumptionModule } from '@project-sunbird/common-consumption';
import { CommonFormElementsModule } from '@project-sunbird/common-form-elements-full';
import { LocationModule } from '../../plugins/location';
import { DashboardComponent } from './components/dashboard/dashboard.component';
import { DashletModule } from  '@project-sunbird/sb-dashlet';
import { FrameworkCatLabelTranslatePipe } from './pipe/framework-label-translate/framework-label-translate.pipe';

export const csUserServiceFactory = (csLibInitializerService: CsLibInitializerService) => {
  if (!CsModule.instance.isInitialised) {
    csLibInitializerService.initializeCs();
  }
  return CsModule.instance.userService;
};
export const csNotificationServiceFactory = (csLibInitializerService: CsLibInitializerService) => {
  if (!CsModule.instance.isInitialised) {
    csLibInitializerService.initializeCs();
  }
  return CsModule.instance.notificationService;
};
@NgModule({
  imports: [
    CommonModule,
    SharedModule,
    CoreModule,
    TelemetryModule,
    RouterModule,
    SuiSelectModule, SuiModalModule, SuiAccordionModule, SuiPopupModule, SuiDropdownModule,
    SuiProgressModule, SuiRatingModule, SuiCollapseModule, SuiDimmerModule,
    FormsModule,
    ReactiveFormsModule,
    PlayerHelperModule,
    CommonConsumptionModule,
    CommonFormElementsModule,
    LocationModule,
    DashletModule.forRoot()
  ],
  providers:  [{ provide: 'CS_USER_SERVICE', useFactory: csUserServiceFactory, deps: [CsLibInitializerService] },
  { provide: 'CS_NOTIFICATION_SERVICE', useFactory: csNotificationServiceFactory, deps: [CsLibInitializerService] }],
  declarations: [ProfileFrameworkPopupComponent, TermsAndConditionsPopupComponent,
    OtpPopupComponent, BatchInfoComponent, SsoMergeConfirmationComponent, ValidateTeacherIdentifierPopupComponent,
    UserLocationComponent,
    UserOnboardingComponent,
    OnboardingUserSelectionComponent,
    ConfirmationPopupComponent, CertPreviewPopupComponent, ContentPlayerComponent, GlobalConsentPiiComponent,
     CollectionPlayerComponent, YearOfBirthComponent, DashboardComponent,FrameworkCatLabelTranslatePipe
  ],
  exports: [ProfileFrameworkPopupComponent, TermsAndConditionsPopupComponent,
    OtpPopupComponent, BatchInfoComponent, SsoMergeConfirmationComponent, ValidateTeacherIdentifierPopupComponent,
    UserLocationComponent, UserOnboardingComponent, OnboardingUserSelectionComponent,
    ConfirmationPopupComponent, CertPreviewPopupComponent, DashboardComponent,
     ContentPlayerComponent, GlobalConsentPiiComponent, CollectionPlayerComponent, YearOfBirthComponent]
})
export class SharedFeatureModule { }

results matching ""

    No results matching ""