MCPcopy Index your code
hub / github.com/angular/angular / ɵɵattribute

Function ɵɵattribute

packages/core/src/render3/instructions/attribute.ts:26–42  ·  view source on GitHub ↗
(
  name: string,
  value: any,
  sanitizer?: SanitizerFn | null,
  namespace?: string,
)

Source from the content-addressed store, hash-verified

24 * @codeGenApi
25 */
26export function ɵɵattribute(
27 name: string,
28 value: any,
29 sanitizer?: SanitizerFn | null,
30 namespace?: string,
31): typeof ɵɵattribute {
32 const lView = getLView();
33 const bindingIndex = nextBindingIndex();
34 if (bindingUpdated(lView, bindingIndex, value)) {
35 const tView = getTView();
36 const tNode = getSelectedTNode();
37 elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);
38 ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);
39 }
40
41 return ɵɵattribute;
42}

Callers 1

Calls 7

getLViewFunction · 0.90
nextBindingIndexFunction · 0.90
bindingUpdatedFunction · 0.90
getTViewFunction · 0.90
getSelectedTNodeFunction · 0.90
elementAttributeInternalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…