From 4288efc450168a6a64ebd832a360f6a4032177be Mon Sep 17 00:00:00 2001 From: okyrylchuk Date: Sat, 6 Feb 2021 17:24:12 +0100 Subject: [PATCH] fix code sample in Environment doc page --- docs/en/UI/Angular/Environment.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/UI/Angular/Environment.md b/docs/en/UI/Angular/Environment.md index 8c6fb28ce7..9802eb6264 100644 --- a/docs/en/UI/Angular/Environment.md +++ b/docs/en/UI/Angular/Environment.md @@ -138,10 +138,10 @@ You can use the `getEnvironment` or `getEnvironment$` method of `EnvironmentServ ```js // this.environment is instance of EnvironmentService -const environment = this.environment.getAll(); +const environment = this.environment.getEnvironment(); // or -this.environment.getAll$().subscribe(environment => { +this.environment.getEnvironment$().subscribe(environment => { // use environment here }) ``` @@ -166,7 +166,7 @@ This method returns the `url` of a specific API based on the key given as its on #### How to Set the Environment -`EnvironmentService` has a method named `setState` which allow you to set the state value. +`EnvironmentService` has a method named `setState` which allows you to set the state value. ```js // this.environment is instance of EnvironmentService