MCPcopy
hub / github.com/angular/angular / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

61 })
62 class Cmp {
63 constructor(ngZone: NgZone) {
64 effect(() => {
65 log.push(Zone.current.name);
66 });
67
68 ngZone.runOutsideAngular(() => {
69 effect(() => {
70 log.push(Zone.current.name);
71 });
72 });
73 }
74 }
75
76 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