Browse Source

update: environment page for the standalone migration

pull/23285/head
sumeyye 1 year ago
parent
commit
c0eae28728
  1. 12
      docs/en/framework/ui/angular/environment.md

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

@ -111,12 +111,16 @@ import { environment } from '../environments/environment';
@NgModule({
imports: [
//...other imports
CoreModule.forRoot({
environment
}),
provideAbpCore(
withOptions({
environment
})
),
]
})
```
## EnvironmentService
` EnvironmentService` is a singleton service, i.e. provided in root level of your application, and keeps the environment in the internal store.
@ -132,7 +136,7 @@ import { EnvironmentService } from '@abp/ng.core';
/* class metadata here */
})
class DemoComponent {
constructor(private environment: EnvironmentService) {}
private environment = inject(EnvironmentService);
}
```

Loading…
Cancel
Save