getBindingAttr() — vue Function Reference
Architecture documentation for the getBindingAttr() function in helpers.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 58594d31_46d6_b10c_c378_911111359052["getBindingAttr()"] 84ab3997_ca97_807e_f586_e8d0a26ded10["helpers.ts"] 58594d31_46d6_b10c_c378_911111359052 -->|defined in| 84ab3997_ca97_807e_f586_e8d0a26ded10 57a516a9_e062_716c_5949_3b536edc5b7b["processKey()"] 57a516a9_e062_716c_5949_3b536edc5b7b -->|calls| 58594d31_46d6_b10c_c378_911111359052 46d2d6a0_496d_4a04_e5c5_4eb4dacf2328["processRef()"] 46d2d6a0_496d_4a04_e5c5_4eb4dacf2328 -->|calls| 58594d31_46d6_b10c_c378_911111359052 0fe86055_18c1_a749_5110_c7eddeeef79e["processSlotContent()"] 0fe86055_18c1_a749_5110_c7eddeeef79e -->|calls| 58594d31_46d6_b10c_c378_911111359052 a334a641_4733_d8da_3902_9c827b477827["processSlotOutlet()"] a334a641_4733_d8da_3902_9c827b477827 -->|calls| 58594d31_46d6_b10c_c378_911111359052 89d949b8_cd8c_7d2d_ba71_30e8a6c1cc40["processComponent()"] 89d949b8_cd8c_7d2d_ba71_30e8a6c1cc40 -->|calls| 58594d31_46d6_b10c_c378_911111359052 4f0d956c_7641_b36d_a23d_3803fa58d311["getAndRemoveAttr()"] 58594d31_46d6_b10c_c378_911111359052 -->|calls| 4f0d956c_7641_b36d_a23d_3803fa58d311 b4977dfa_c8a9_400f_00e1_dac785ffde86["parseFilters()"] 58594d31_46d6_b10c_c378_911111359052 -->|calls| b4977dfa_c8a9_400f_00e1_dac785ffde86 style 58594d31_46d6_b10c_c378_911111359052 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/helpers.ts lines 180–195
export function getBindingAttr(
el: ASTElement,
name: string,
getStatic?: boolean
): string | undefined {
const dynamicValue =
getAndRemoveAttr(el, ':' + name) || getAndRemoveAttr(el, 'v-bind:' + name)
if (dynamicValue != null) {
return parseFilters(dynamicValue)
} else if (getStatic !== false) {
const staticValue = getAndRemoveAttr(el, name)
if (staticValue != null) {
return JSON.stringify(staticValue)
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getBindingAttr() do?
getBindingAttr() is a function in the vue codebase, defined in src/compiler/helpers.ts.
Where is getBindingAttr() defined?
getBindingAttr() is defined in src/compiler/helpers.ts at line 180.
What does getBindingAttr() call?
getBindingAttr() calls 2 function(s): getAndRemoveAttr, parseFilters.
What calls getBindingAttr()?
getBindingAttr() is called by 5 function(s): processComponent, processKey, processRef, processSlotContent, processSlotOutlet.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free