v-text

v-text

  • Expects: String

  • Details:

    Updates the element’s textContent.

    Internally, {{ Mustache }} interpolations are also compiled as a v-text directive on a textNode. The directive form requires a wrapper element, but offers slightly better performance and avoids FOUC (Flash of Uncompiled Content).

  • Example:

    <span v-text="msg"></span>
    <!-- same as -->
    <span>{{msg}}</span>
doc_VueJS
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.