MCPcopy
hub / github.com/angular/angular / interpolation1

Function interpolation1

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

Source from the content-addressed store, hash-verified

58 * @param suffix static value used for concatenation only.
59 */
60export function interpolation1(
61 lView: LView,
62 prefix: string,
63 v0: any,
64 suffix = '',
65): string | NO_CHANGE {
66 const different = bindingUpdated(lView, nextBindingIndex(), v0);
67 return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;
68}
69
70/**
71 * Creates an interpolation binding with 2 expressions.

Callers 2

ɵɵinterpolate1Function · 0.90
ɵɵtextInterpolate1Function · 0.90

Calls 3

bindingUpdatedFunction · 0.90
nextBindingIndexFunction · 0.90
renderStringifyFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…