Browse Source

update: environment page

pull/23285/head
sumeyye 10 months ago
parent
commit
b653710040
  1. 16
      docs/en/framework/ui/angular/environment.md

16
docs/en/framework/ui/angular/environment.md

@ -101,24 +101,26 @@ export interface RemoteEnv {
- `method`: HTTP method to be used when retrieving environment config. Default: `GET`
- `headers`: If extra headers are needed for the request, it can be set through this field.
## Provide Environment Variable to Core Module
## Configure Core Provider with Environment
`environment` variable comes from angular host application.
```js
import { environment } from '../environments/environment';
@NgModule({
imports: [
//...other imports
export const appConfig: ApplicationConfig = {
providers: [
...
provideAbpCore(
withOptions({
environment
environment,
...
})
),
...
],
};
]
})
```
## EnvironmentService

Loading…
Cancel
Save