Skip to content

Commit

Permalink
Merge pull request #7623 from okyrylchuk/dev
Browse files Browse the repository at this point in the history
Fix code sample in Environment doc page
  • Loading branch information
mehmet-erim committed Feb 8, 2021
2 parents 285b756 + 9ed34c2 commit 16d3563
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/UI/Angular/Environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
```
Expand All @@ -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
Expand Down

0 comments on commit 16d3563

Please sign in to comment.