Browse Source

Merge pull request #7649 from abpframework/auto-merge/rel-4-0/156

Merge branch rel-4.1 with refs/heads/rel-4.0
rel-4.1
Mehmet Erim 5 years ago
committed by GitHub
parent
commit
816d94836f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/en/UI/Angular/Environment.md

6
docs/en/UI/Angular/Environment.md

@ -138,10 +138,10 @@ You can use the `getEnvironment` or `getEnvironment$` method of `EnvironmentServ
```js ```js
// this.environment is instance of EnvironmentService // this.environment is instance of EnvironmentService
const environment = this.environment.getAll(); const environment = this.environment.getEnvironment();
// or // or
this.environment.getAll$().subscribe(environment => { this.environment.getEnvironment$().subscribe(environment => {
// use environment here // 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 #### 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 ```js
// this.environment is instance of EnvironmentService // this.environment is instance of EnvironmentService

Loading…
Cancel
Save