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

Class ZoneComp

packages/core/test/application_ref_spec.ts:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206 it('runs in `NgZone`', inject([ApplicationRef], async (ref: ApplicationRef) => {
207 @Component({
208 selector: 'zone-comp',
209 template: ` <div>{{ name }}</div> `,
210 })
211 class ZoneComp {
212 readonly inNgZone = NgZone.isInAngularZone();
213 }
214
215 createRootEl('zone-comp');
216 const comp = ref.bootstrap(ZoneComp);

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
isInAngularZoneMethod · 0.80

Tested by

no test coverage detected