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
parent
commit
c44d4dbe93
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      npm/ng-packs/packages/core/src/lib/services/config-state.service.ts

6
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;
}
}
Loading…
Cancel
Save