MCPcopy Index your code
hub / github.com/angular/angular / emit

Method emit

packages/core/src/event_emitter.ts:135–142  ·  view source on GitHub ↗
(value?: any)

Source from the content-addressed store, hash-verified

133 }
134
135 emit(value?: any) {
136 const prevConsumer = setActiveConsumer(null);
137 try {
138 super.next(value);
139 } finally {
140 setActiveConsumer(prevConsumer);
141 }
142 }
143
144 override subscribe(observerOrNext?: any, error?: any, complete?: any): Subscription {
145 let nextFn = observerOrNext;

Callers

nothing calls this directly

Calls 2

setActiveConsumerFunction · 0.90
nextMethod · 0.45

Tested by

no test coverage detected