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

Method subscribe

packages/core/src/authoring/output/output_ref.ts:40–40  ·  view source on GitHub ↗

* Registers a callback that is invoked whenever the output * emits a new value of type `T`. * * Angular will automatically clean up the subscription when * the directive/component of the output is destroyed.

(callback: (value: T) => void)

Source from the content-addressed store, hash-verified

38 * the directive/component of the output is destroyed.
39 */
40 subscribe(callback: (value: T) => void): OutputRefSubscription;
41
42 /**
43 * Reference to the `DestroyRef` of the directive/component declaring

Callers 7

_watchAngularEventsMethod · 0.65
constructorMethod · 0.65
initializeMethod · 0.65
initializeMethod · 0.65
bootstrapFunction · 0.65
whenStableMethod · 0.65
runInitializersMethod · 0.65

Implementers 6

MockPushManagerpackages/service-worker/testing/mock.t
OutputFromObservableRefpackages/core/rxjs-interop/src/output_
EventEmitter_packages/core/src/event_emitter.ts
OutputEmitterRefpackages/core/src/authoring/output/out
Locationpackages/common/src/location/location.
SpyLocationpackages/common/testing/src/location_m

Calls

no outgoing calls

Tested by

no test coverage detected