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

Class Cmp

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

Source from the content-addressed store, hash-verified

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

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