* @returns A promise that resolves when the application becomes stable
()
| 347 | * @returns A promise that resolves when the application becomes stable |
| 348 | */ |
| 349 | whenStable(): Promise<void> { |
| 350 | let subscription: Subscription; |
| 351 | return new Promise<void>((resolve) => { |
| 352 | subscription = this.isStable.subscribe({ |
| 353 | next: (stable) => { |
| 354 | if (stable) { |
| 355 | resolve(); |
| 356 | } |
| 357 | }, |
| 358 | }); |
| 359 | }).finally(() => { |
| 360 | subscription.unsubscribe(); |
| 361 | }); |
| 362 | } |
| 363 | |
| 364 | private readonly _injector = inject(EnvironmentInjector); |
| 365 | private _rendererFactory: RendererFactory2 | null = null; |
nothing calls this directly
no test coverage detected