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

Method isInAngularZone

packages/core/src/zone/ng_zone.ts:193–196  ·  view source on GitHub ↗

This method checks whether the method call happens within an Angular Zone instance.

()

Source from the content-addressed store, hash-verified

191 This method checks whether the method call happens within an Angular Zone instance.
192 */
193 static isInAngularZone(): boolean {
194 // Zone needs to be checked, because this method might be called even when NoopNgZone is used.
195 return typeof Zone !== 'undefined' && Zone.current.get(isAngularZoneProperty) === true;
196 }
197
198 /**
199 Assures that the method is called within the Angular Zone, otherwise throws an error.

Callers 15

constructorMethod · 0.80
ZoneCompClass · 0.80
commonTestsFunction · 0.80
mockRequestIdleCallbackFunction · 0.80
hmr_spec.tsFile · 0.80
constructorMethod · 0.80
assertInAngularZoneMethod · 0.80
valueMethod · 0.80
constructorMethod · 0.80
ngOnDestroyMethod · 0.80
expectToBeInNgZoneFunction · 0.80

Implementers 1

NoopNgZonepackages/core/src/zone/ng_zone.ts

Calls 1

getMethod · 0.65

Tested by

no test coverage detected