MCPcopy Index your code
hub / github.com/angular/angular / whenStable

Function whenStable

packages/elements/test/component-factory-strategy_spec.ts:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 });
48
49 async function whenStable(): Promise<void> {
50 const appRef = injector.get(ApplicationRef);
51 await firstValueFrom(appRef.isStable.pipe(filter((stable) => stable)));
52 return;
53 }
54
55 it('should create a new strategy from the factory', () => {
56 const strategyFactory = new ComponentNgElementStrategyFactory(TestComponent);

Calls 2

firstValueFromFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…