0
deathmid2233@gmail.com created
https://docs.abp.io/en/abp/latest/UI/Angular/Config-State-Service#set-state
Create an error/problem report:
- ** ABPFrameVersion:** v7.0(latest)**
- ** UIType**:Angular
- Database provider:EF Core
- Repeat the steps of the problem:“
import {AbpApplicationConfigurationService, ConfigStateService} from '@abp/ng.core';
constructor(private abpApplicationConfigurationService: AbpApplicationConfigurationService, private config: ConfigStateService) {
this.abpApplicationConfigurationService.get().subscribe(config => {
this.config.setState(config);
})
}
2 Answer(s)
-
0
The documanation is obsolate. It will be updated. If you want to update app state you can use this code
configStateService.refreshAppState()
https://github.com/abpframework/abp/blob/0c3e4c4ba3b2e0b9c3fe3031c53d79c255b97655/npm/ng-packs/packages/core/src/lib/services/config-state.service.ts#L64
-
0
The documanation is obsolate. It will be updated. If you want to update app state you can use this code
configStateService.refreshAppState()
https://github.com/abpframework/abp/blob/0c3e4c4ba3b2e0b9c3fe3031c53d79c255b97655/npm/ng-packs/packages/core/src/lib/services/config-state.service.ts#L64
I want to set App status,like this:
this.config.setState(newConfigObj);