MCPcopy Create free account
hub / github.com/angular/angular / ZoneComp

Class ZoneComp

packages/core/test/application_ref_spec.ts:204–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 it('runs in `NgZone`', async () => {
203 const ref = TestBed.inject(ApplicationRef);
204 @Component({
205 selector: 'zone-comp',
206 template: ``,
207 })
208 class ZoneComp {
209 readonly inNgZone = NgZone.isInAngularZone();
210 }
211
212 createRootEl('zone-comp');
213 const comp = ref.bootstrap(ZoneComp);

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
isInAngularZoneMethod · 0.80

Tested by

no test coverage detected