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

Function ɵɵariaProperty

packages/core/src/render3/instructions/aria_property.ts:36–56  ·  view source on GitHub ↗
(name: string, value: T)

Source from the content-addressed store, hash-verified

34 * @codeGenApi
35 */
36export function ɵɵariaProperty<T>(name: string, value: T): typeof ɵɵariaProperty {
37 const lView = getLView();
38 const bindingIndex = nextBindingIndex();
39 if (bindingUpdated(lView, bindingIndex, value)) {
40 const tView = getTView();
41 const tNode = getSelectedTNode();
42 const hasSetInput = setAllInputsForProperty(tNode, tView, lView, name, value);
43
44 if (hasSetInput) {
45 isComponentHost(tNode) && markDirtyIfOnPush(lView, tNode.index);
46 ngDevMode && setNgReflectProperties(lView, tView, tNode, name, value);
47 } else {
48 ngDevMode && assertTNodeType(tNode, TNodeType.Element);
49 const element = getNativeByTNode(tNode, lView) as RElement;
50 setElementAttribute(lView[RENDERER], element, null, tNode.value, name, value, null);
51 }
52
53 ngDevMode && storePropertyBindingMetadata(tView.data, tNode, name, bindingIndex);
54 }
55 return ɵɵariaProperty;
56}

Callers

nothing calls this directly

Calls 13

getLViewFunction · 0.90
nextBindingIndexFunction · 0.90
bindingUpdatedFunction · 0.90
getTViewFunction · 0.90
getSelectedTNodeFunction · 0.90
setAllInputsForPropertyFunction · 0.90
isComponentHostFunction · 0.90
markDirtyIfOnPushFunction · 0.90
setNgReflectPropertiesFunction · 0.90
assertTNodeTypeFunction · 0.90
getNativeByTNodeFunction · 0.90
setElementAttributeFunction · 0.90

Tested by

no test coverage detected