MCPcopy Create free account
hub / github.com/angular/angular / ɵɵpipeBind2

Function ɵɵpipeBind2

packages/core/src/render3/pipe.ts:200–215  ·  view source on GitHub ↗
(index: number, slotOffset: number, v1: any, v2: any)

Source from the content-addressed store, hash-verified

198 * @codeGenApi
199 */
200export function ɵɵpipeBind2(index: number, slotOffset: number, v1: any, v2: any): any {
201 const adjustedIndex = index + HEADER_OFFSET;
202 const lView = getLView();
203 const pipeInstance = load<PipeTransform>(lView, adjustedIndex);
204 return isPure(lView, adjustedIndex)
205 ? pureFunction2Internal(
206 lView,
207 getBindingRoot(),
208 slotOffset,
209 pipeInstance.transform,
210 v1,
211 v2,
212 pipeInstance,
213 )
214 : pipeInstance.transform(v1, v2);
215}
216
217/**
218 * Invokes a pipe with 3 arguments.

Callers

nothing calls this directly

Calls 6

getLViewFunction · 0.90
loadFunction · 0.90
pureFunction2InternalFunction · 0.90
getBindingRootFunction · 0.90
isPureFunction · 0.85
transformMethod · 0.65

Tested by

no test coverage detected