Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code sample in Environment doc page #7623

Merged
merged 1 commit into from
Feb 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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