From 4bef91bb0f0ad463c6bce58db3453644fac9ca8a Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Mon, 26 Oct 2020 17:07:17 +0300 Subject: [PATCH] docs: remove features part from config state service --- docs/en/UI/Angular/Config-State.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/en/UI/Angular/Config-State.md b/docs/en/UI/Angular/Config-State.md index d00e463924..b1a882d43a 100644 --- a/docs/en/UI/Angular/Config-State.md +++ b/docs/en/UI/Angular/Config-State.md @@ -93,17 +93,6 @@ const searchUrl = this.config.getApiUrl("search"); This method returns the `url` of a specific API based on the key given as its only parameter. If there is no key, `'default'` is used. -### How to Get a Specific Feature From the Store - -You can use the `getFeature` method of `ConfigStateService` to get a specific feature from the configuration state. Here is an example: - -```js -// this.config is instance of ConfigStateService - -const isChatEnabled = this.config.getFeature("Chat.Enable"); -// 'en' -``` - ### How to Get a Specific Permission From the Store You can use the `getGrantedPolicy` method of `ConfigStateService` to get a specific permission from the configuration state. For that, you should pass a policy key as parameter to the method. @@ -200,6 +189,7 @@ Please refer to `Config.Environment` type for all the properties you can pass to ## See Also - [Settings](./Settings.md) +- [Features](./Features.md) ## What's Next?