Browse Source

update: resolve comments to use new injection instead

pull/23275/head
sumeyye 1 year ago
parent
commit
34e386f515
  1. 5
      docs/en/framework/ui/angular/abp-window-service.md
  2. 2
      docs/en/framework/ui/angular/page-component.md

5
docs/en/framework/ui/angular/abp-window-service.md

@ -13,10 +13,9 @@ Firstly, ensure that the service is injected into the component or any other Ang
```js
import { AbpWindowService } from '@abp/ng.core';
import { inject } from '@angular/core';
private abpWindowService = inject(AbpWindowService)
// or
// constructor(private abpWindowService: AbpWindowService) { }
private abpWindowService = inject(AbpWindowService)
```
### Downloading a Blob

2
docs/en/framework/ui/angular/page-component.md

@ -158,8 +158,6 @@ export class MyPageRenderStrategy implements PageRenderStrategy {
* shouldRender can also return an Observable<boolean> which means
* an async service can be used within.
constructor(private service: SomeAsyncService) {}
or
service = inject(SomeAsyncService)
shouldRender(type: string) {

Loading…
Cancel
Save