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

Function interpolation2

packages/core/src/render3/instructions/interpolation.ts:73–86  ·  view source on GitHub ↗
(
  lView: LView,
  prefix: string,
  v0: any,
  i0: string,
  v1: any,
  suffix = '',
)

Source from the content-addressed store, hash-verified

71 * Creates an interpolation binding with 2 expressions.
72 */
73export function interpolation2(
74 lView: LView,
75 prefix: string,
76 v0: any,
77 i0: string,
78 v1: any,
79 suffix = '',
80): string | NO_CHANGE {
81 const bindingIndex = getBindingIndex();
82 const different = bindingUpdated2(lView, bindingIndex, v0, v1);
83 incrementBindingIndex(2);
84
85 return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;
86}
87
88/**
89 * Creates an interpolation binding with 3 expressions.

Callers 2

ɵɵinterpolate2Function · 0.90
ɵɵtextInterpolate2Function · 0.90

Calls 4

getBindingIndexFunction · 0.90
bindingUpdated2Function · 0.90
incrementBindingIndexFunction · 0.90
renderStringifyFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…