Home / Function/ getBindingAttr() — vue Function Reference

getBindingAttr() — vue Function Reference

Architecture documentation for the getBindingAttr() function in helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  4ed4ecb1_33ab_6e92_8439_f0a81ee997fa["getBindingAttr()"]
  59b7cd33_3172_bd71_66da_0b9508449054["helpers.ts"]
  4ed4ecb1_33ab_6e92_8439_f0a81ee997fa -->|defined in| 59b7cd33_3172_bd71_66da_0b9508449054
  57d2dc45_0fa0_bba6_c720_eacb54a1ee00["processKey()"]
  57d2dc45_0fa0_bba6_c720_eacb54a1ee00 -->|calls| 4ed4ecb1_33ab_6e92_8439_f0a81ee997fa
  86414445_c3f6_cc55_3198_e48e41c89275["processRef()"]
  86414445_c3f6_cc55_3198_e48e41c89275 -->|calls| 4ed4ecb1_33ab_6e92_8439_f0a81ee997fa
  b1c7f848_3443_6284_06d1_dfc620ebd2c4["processSlotContent()"]
  b1c7f848_3443_6284_06d1_dfc620ebd2c4 -->|calls| 4ed4ecb1_33ab_6e92_8439_f0a81ee997fa
  29c995ce_c25f_38b3_203f_88723e699df0["processSlotOutlet()"]
  29c995ce_c25f_38b3_203f_88723e699df0 -->|calls| 4ed4ecb1_33ab_6e92_8439_f0a81ee997fa
  a65173f6_8686_3a63_f3d5_3417b334b891["processComponent()"]
  a65173f6_8686_3a63_f3d5_3417b334b891 -->|calls| 4ed4ecb1_33ab_6e92_8439_f0a81ee997fa
  0e57bf03_ee68_ffda_8b31_3f2c14b445a6["getAndRemoveAttr()"]
  4ed4ecb1_33ab_6e92_8439_f0a81ee997fa -->|calls| 0e57bf03_ee68_ffda_8b31_3f2c14b445a6
  b1101a58_6379_8514_36a1_9d7f75b2b23f["parseFilters()"]
  4ed4ecb1_33ab_6e92_8439_f0a81ee997fa -->|calls| b1101a58_6379_8514_36a1_9d7f75b2b23f
  style 4ed4ecb1_33ab_6e92_8439_f0a81ee997fa 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

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