Home / Function/ text() — vue Function Reference

text() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0ec79856_602a_b124_43ce_37a8ae4a2a91["text()"]
  4760a472_5347_3554_a7fe_3e7d21471a37["addProp()"]
  0ec79856_602a_b124_43ce_37a8ae4a2a91 -->|calls| 4760a472_5347_3554_a7fe_3e7d21471a37
  style 0ec79856_602a_b124_43ce_37a8ae4a2a91 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/compiler/directives/text.ts lines 4–8

export default function text(el: ASTElement, dir: ASTDirective) {
  if (dir.value) {
    addProp(el, 'textContent', `_s(${dir.value})`, dir)
  }
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does text() do?
text() is a function in the vue codebase.
What does text() call?
text() calls 1 function(s): addProp.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free