Browse Source
Merge pull request #16256 from vcozcan/config-state-service
Set state function is created within config state service
pull/16266/head
Mahmut Gundogdu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/services/config-state.service.ts
|
|
|
@ -15,6 +15,10 @@ import { InternalStore } from '../utils/internal-store-utils'; |
|
|
|
}) |
|
|
|
export class ConfigStateService { |
|
|
|
private readonly store = new InternalStore({} as ApplicationConfigurationDto); |
|
|
|
|
|
|
|
setState(config: ApplicationConfigurationDto){ |
|
|
|
this.store.set(config) |
|
|
|
} |
|
|
|
|
|
|
|
get createOnUpdateStream() { |
|
|
|
return this.store.sliceUpdate; |
|
|
|
@ -224,4 +228,4 @@ function splitKeys(keys: string[] | string): string[] { |
|
|
|
} |
|
|
|
|
|
|
|
return keys; |
|
|
|
} |
|
|
|
} |