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

Method constructor

packages/core/test/render3/reactivity_spec.ts:62–72  ·  view source on GitHub ↗
(ngZone: NgZone)

Source from the content-addressed store, hash-verified

60 })
61 class Cmp {
62 constructor(ngZone: NgZone) {
63 effect(() => {
64 log.push(Zone.current.name);
65 });
66
67 ngZone.runOutsideAngular(() => {
68 effect(() => {
69 log.push(Zone.current.name);
70 });
71 });
72 }
73 }
74
75 await bootstrapApplication(Cmp);

Callers

nothing calls this directly

Calls 5

effectFunction · 0.90
createComponentFunction · 0.90
pushMethod · 0.45
runOutsideAngularMethod · 0.45

Tested by

no test coverage detected