From 7f2d6beea9713c82c43af39049e0d60e3990f00c Mon Sep 17 00:00:00 2001 From: vnetonline Date: Fri, 27 May 2022 17:06:34 +1000 Subject: [PATCH 1/2] Update Config-State-Service.md Shouldn't `ApplicationConfigurationService `be `abpApplicationConfigurationService` --- docs/en/UI/Angular/Config-State-Service.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/UI/Angular/Config-State-Service.md b/docs/en/UI/Angular/Config-State-Service.md index b3884f65e1..cfca91f1dc 100644 --- a/docs/en/UI/Angular/Config-State-Service.md +++ b/docs/en/UI/Angular/Config-State-Service.md @@ -122,8 +122,8 @@ You can get the application configuration response and set the `ConfigStateServi ```js import {ApplicationConfigurationService, ConfigStateService} from '@abp/ng.core'; -constructor(private applicationConfigurationService: ApplicationConfigurationService, private config: ConfigStateService) { - this.applicationConfigurationService.getConfiguration().subscribe(config => { +constructor(private abpApplicationConfigurationService: AbpApplicationConfigurationService, private config: ConfigStateService) { + this.abpApplicationConfigurationService.get.subscribe(config => { this.config.setState(config); }) } From 5ef7c01bb913af224bb334d41b2617f82b0834c0 Mon Sep 17 00:00:00 2001 From: vnetonline Date: Fri, 27 May 2022 17:10:28 +1000 Subject: [PATCH 2/2] Update Config-State-Service.md Fixed Type get should be get() in this.abpApplicationConfigurationService.get().subscribe --- docs/en/UI/Angular/Config-State-Service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/UI/Angular/Config-State-Service.md b/docs/en/UI/Angular/Config-State-Service.md index cfca91f1dc..11415eb771 100644 --- a/docs/en/UI/Angular/Config-State-Service.md +++ b/docs/en/UI/Angular/Config-State-Service.md @@ -123,7 +123,7 @@ You can get the application configuration response and set the `ConfigStateServi import {ApplicationConfigurationService, ConfigStateService} from '@abp/ng.core'; constructor(private abpApplicationConfigurationService: AbpApplicationConfigurationService, private config: ConfigStateService) { - this.abpApplicationConfigurationService.get.subscribe(config => { + this.abpApplicationConfigurationService.get().subscribe(config => { this.config.setState(config); }) }