MCPcopy
hub / github.com/angular/angular / Cmp

Class Cmp

packages/core/test/render3/reactivity_spec.ts:58–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 withBody('<test-cmp></test-cmp>', async () => {
57 const log: string[] = [];
58 @Component({
59 selector: 'test-cmp',
60 template: '',
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);
77

Callers

nothing calls this directly

Calls 8

ComponentInterface · 0.90
signalFunction · 0.90
effectFunction · 0.90
untrackedFunction · 0.90
injectFunction · 0.90
toObservableFunction · 0.90
updateMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected