getBindingAttr() — vue Function Reference
Architecture documentation for the getBindingAttr() function in helpers.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee["getBindingAttr()"] c2d6f2f2_8d6f_8f78_40fb_493418664b21["processKey()"] c2d6f2f2_8d6f_8f78_40fb_493418664b21 -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee f59589c3_d9ef_ae50_2d09_2d17a4b64bf4["processRef()"] f59589c3_d9ef_ae50_2d09_2d17a4b64bf4 -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee a805e141_5683_4910_efc8_e49b792fbae3["processSlotContent()"] a805e141_5683_4910_efc8_e49b792fbae3 -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee 0cf054aa_ea34_fd85_8aa8_9bd13c9a3602["processSlotOutlet()"] 0cf054aa_ea34_fd85_8aa8_9bd13c9a3602 -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee aa53b9a4_c7fd_4dbe_7bb0_f667bc2eca3e["processComponent()"] aa53b9a4_c7fd_4dbe_7bb0_f667bc2eca3e -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee 7539ecb1_c1db_6b0e_5a90_bbe9d998a079["genCheckboxModel()"] 7539ecb1_c1db_6b0e_5a90_bbe9d998a079 -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee dc49a23f_3673_17c2_d4ff_83744ff5f5a2["genRadioModel()"] dc49a23f_3673_17c2_d4ff_83744ff5f5a2 -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee 2e7c25ee_983d_edd1_399c_2f07c7c41ac8["transformNode()"] 2e7c25ee_983d_edd1_399c_2f07c7c41ac8 -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee d35ad88b_7ad0_eb3d_d87a_8f404b67b1fb["preTransformNode()"] d35ad88b_7ad0_eb3d_d87a_8f404b67b1fb -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee 6ff8ece7_aa25_0786_1ca4_98f18f60c01c["transformNode()"] 6ff8ece7_aa25_0786_1ca4_98f18f60c01c -->|calls| 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee b701a596_9c82_7ec4_2fc8_2e36d33c4974["getAndRemoveAttr()"] 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee -->|calls| b701a596_9c82_7ec4_2fc8_2e36d33c4974 e82e0ef9_225b_c510_670f_d4553c00a84c["parseFilters()"] 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee -->|calls| e82e0ef9_225b_c510_670f_d4553c00a84c style 0d1a9a6d_9f27_26ff_a82e_63f0ab50e4ee 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
Called By
Source
Frequently Asked Questions
What does getBindingAttr() do?
getBindingAttr() is a function in the vue codebase.
What does getBindingAttr() call?
getBindingAttr() calls 2 function(s): getAndRemoveAttr, parseFilters.
What calls getBindingAttr()?
getBindingAttr() is called by 10 function(s): genCheckboxModel, genRadioModel, preTransformNode, processComponent, processKey, processRef, processSlotContent, processSlotOutlet, and 2 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free