* @returns A promise that resolves when the application becomes stable
()
| 336 | * @returns A promise that resolves when the application becomes stable |
| 337 | */ |
| 338 | whenStable(): Promise<void> { |
| 339 | let subscription: Subscription; |
| 340 | return new Promise<void>((resolve) => { |
| 341 | subscription = this.isStable.subscribe({ |
| 342 | next: (stable) => { |
| 343 | if (stable) { |
| 344 | resolve(); |
| 345 | } |
| 346 | }, |
| 347 | }); |
| 348 | }).finally(() => { |
| 349 | subscription.unsubscribe(); |
| 350 | }); |
| 351 | } |
| 352 | |
| 353 | private readonly _injector = inject(EnvironmentInjector); |
| 354 | private _rendererFactory: RendererFactory2 | null = null; |
nothing calls this directly
no test coverage detected