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

Method _subscribe

packages/common/src/pipes/async_pipe.ts:202–210  ·  view source on GitHub ↗
(obj: Subscribable<any> | PromiseLike<any> | EventEmitter<any>)

Source from the content-addressed store, hash-verified

200 }
201
202 private _subscribe(obj: Subscribable<any> | PromiseLike<any> | EventEmitter<any>): void {
203 this._obj = obj;
204 this._strategy = this._selectStrategy(obj);
205 this._subscription = this._strategy.createSubscription(
206 obj,
207 (value: Object) => this._updateLatestValue(obj, value),
208 (e) => this.applicationErrorHandler(e),
209 );
210 }
211
212 private _selectStrategy(
213 obj: Subscribable<any> | PromiseLike<any> | EventEmitter<any>,

Callers 1

transformMethod · 0.95

Calls 3

_selectStrategyMethod · 0.95
_updateLatestValueMethod · 0.95
createSubscriptionMethod · 0.65

Tested by

no test coverage detected