diff --git a/libs/angular-accelerator/src/index.ts b/libs/angular-accelerator/src/index.ts index 87ae2c0a..8ff170ca 100644 --- a/libs/angular-accelerator/src/index.ts +++ b/libs/angular-accelerator/src/index.ts @@ -23,6 +23,7 @@ export * from './lib/components/data-loading-error/data-loading-error.component' // services export * from './lib/services/breadcrumb.service' export * from './lib/services/translation-cache.service' +export * from './lib/services/app-config-service' // pipes export * from './lib/pipes/dynamic.pipe' diff --git a/libs/angular-accelerator/src/lib/angular-accelerator.module.ts b/libs/angular-accelerator/src/lib/angular-accelerator.module.ts index de1e8bd1..b60b4074 100644 --- a/libs/angular-accelerator/src/lib/angular-accelerator.module.ts +++ b/libs/angular-accelerator/src/lib/angular-accelerator.module.ts @@ -4,7 +4,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms' import { RouterModule } from '@angular/router' import { MissingTranslationHandler, MissingTranslationHandlerParams, TranslateModule } from '@ngx-translate/core' -import { AppConfigService, UserService } from '@onecx/angular-integration-interface' +import { UserService } from '@onecx/angular-integration-interface' import { AngularRemoteComponentsModule } from '@onecx/angular-remote-components' import { firstValueFrom, skip } from 'rxjs' @@ -30,6 +30,7 @@ import { TooltipOnOverflowDirective } from './directives/tooltipOnOverflow.direc import { DynamicPipe } from './pipes/dynamic.pipe' import { OcxTimeAgoPipe } from './pipes/ocxtimeago.pipe' import { DynamicLocaleId } from './utils/dynamic-locale-id' +import { AppConfigService } from './services/app-config-service' export class AngularAcceleratorMissingTranslationHandler implements MissingTranslationHandler { handle(params: MissingTranslationHandlerParams) { diff --git a/libs/angular-integration-interface/src/lib/services/app-config-service.ts b/libs/angular-accelerator/src/lib/services/app-config-service.ts similarity index 97% rename from libs/angular-integration-interface/src/lib/services/app-config-service.ts rename to libs/angular-accelerator/src/lib/services/app-config-service.ts index 5772fc53..8530835c 100644 --- a/libs/angular-integration-interface/src/lib/services/app-config-service.ts +++ b/libs/angular-accelerator/src/lib/services/app-config-service.ts @@ -4,7 +4,7 @@ import { Injectable } from '@angular/core' import { Config } from '@onecx/integration-interface' import { BehaviorSubject, firstValueFrom } from 'rxjs' -@Injectable() +@Injectable({ providedIn: 'any' }) export class AppConfigService { config$ = new BehaviorSubject<{ [key: string]: string }>({}) diff --git a/libs/angular-integration-interface/src/index.ts b/libs/angular-integration-interface/src/index.ts index 942aee7c..ffd738f4 100644 --- a/libs/angular-integration-interface/src/index.ts +++ b/libs/angular-integration-interface/src/index.ts @@ -1,5 +1,4 @@ // services -export * from './lib/services/app-config-service' export * from './lib/services/app-state.service' export * from './lib/services/configuration.service' export * from './lib/services/user.service'