MCPcopy Create free account
hub / github.com/angular/components / detectChanges

Function detectChanges

src/cdk/testing/testbed/testbed-harness-environment.ts:82–89  ·  view source on GitHub ↗

* Triggers change detection for a specific fixture. * @param fixture The fixture to trigger change detection for.

(fixture: Fixture)

Source from the content-addressed store, hash-verified

80 * @param fixture The fixture to trigger change detection for.
81 */
82async function detectChanges(fixture: Fixture) {
83 fixture.detectChanges();
84 if (isInFakeAsyncZone()) {
85 flush();
86 } else {
87 await fixture.whenStable();
88 }
89}
90
91/** A `HarnessEnvironment` implementation for Angular's Testbed. */
92export class TestbedHarnessEnvironment extends HarnessEnvironment<Element> {

Callers 1

forceStabilizeMethod · 0.70

Calls 1

isInFakeAsyncZoneFunction · 0.85

Tested by

no test coverage detected