Browse Source

Update page-component.md

pull/23275/head
Fahri Gedik 1 year ago
parent
commit
0baa1bb8e9
  1. 2
      docs/en/framework/ui/angular/page-component.md

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

@ -159,6 +159,8 @@ export class MyPageRenderStrategy implements PageRenderStrategy {
* an async service can be used within.
constructor(private service: SomeAsyncService) {}
or
service = inject(SomeAsyncService)
shouldRender(type: string) {
return this.service.checkTypeAsync(type).pipe(map(val => val.isTrue()));

Loading…
Cancel
Save