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
  2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e["getBindingAttr()"]
  2e707572_48f7_f24b_6fa2_9fb3d14b5a06["processKey()"]
  2e707572_48f7_f24b_6fa2_9fb3d14b5a06 -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  3b70d862_51e3_91ec_aaf4_3dd40b6e9155["processRef()"]
  3b70d862_51e3_91ec_aaf4_3dd40b6e9155 -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  5b174fba_1f83_94cc_774e_5234231c01dc["processSlotContent()"]
  5b174fba_1f83_94cc_774e_5234231c01dc -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  29c1145b_2570_c09e_ed12_f2b0904043f0["processSlotOutlet()"]
  29c1145b_2570_c09e_ed12_f2b0904043f0 -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  1357d3a3_07b9_6531_f9bb_13cc933ea47d["processComponent()"]
  1357d3a3_07b9_6531_f9bb_13cc933ea47d -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  2a02b0ab_9034_a2f9_d310_cda75957f53b["genCheckboxModel()"]
  2a02b0ab_9034_a2f9_d310_cda75957f53b -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  1a10f80b_54fb_898b_54fd_6eee5e4ca82a["genRadioModel()"]
  1a10f80b_54fb_898b_54fd_6eee5e4ca82a -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  b99b1c17_88bd_b28b_f216_7b2ce17de916["transformNode()"]
  b99b1c17_88bd_b28b_f216_7b2ce17de916 -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  5266d1ae_e943_1c9a_9925_9c539b8a7a9b["preTransformNode()"]
  5266d1ae_e943_1c9a_9925_9c539b8a7a9b -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  6758f672_6a56_f76d_7ea5_63af7382caff["transformNode()"]
  6758f672_6a56_f76d_7ea5_63af7382caff -->|calls| 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e
  b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3["getAndRemoveAttr()"]
  2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3
  864d3348_97c0_ef1e_0722_64a34582d8e6["parseFilters()"]
  2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e -->|calls| 864d3348_97c0_ef1e_0722_64a34582d8e6
  style 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e 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.
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