MCPcopy
hub / github.com/angular/angular / subscribe

Method subscribe

packages/core/src/event_emitter.ts:98–98  ·  view source on GitHub ↗

* Registers handlers for events emitted by this instance. * @param next When supplied, a custom handler for emitted events. * @param error When supplied, a custom handler for an error notification from this emitter. * @param complete When supplied, a custom handler for a completion notifica

(
    next?: (value: T) => void,
    error?: (error: any) => void,
    complete?: () => void,
  )

Source from the content-addressed store, hash-verified

96 * emitter.
97 */
98 subscribe(
99 next?: (value: T) => void,
100 error?: (error: any) => void,
101 complete?: () => void,

Callers 15

makeRequestAndExpectOneFunction · 0.65
makeRequestAndExpectNoneFunction · 0.65
hydration_spec.tsFile · 0.65
comm_spec.tsFile · 0.65
ngswAppInitializerFunction · 0.65
constructorMethod · 0.65
postMessageMethod · 0.65
constructorMethod · 0.65
requestSubscriptionMethod · 0.65

Implementers 2

EventEmitter_packages/core/src/event_emitter.ts
OutputEmitterRefpackages/core/src/authoring/output/out

Calls

no outgoing calls

Tested by 15

checkResolveDataFunction · 0.52
checkGuardsFunction · 0.52
constructorMethod · 0.52
onNavigationEndFunction · 0.52
constructorMethod · 0.52