Question · Vue.js course · Module 2: Template Syntax

The v-text Directive

What is the difference between {{ }} and v-text?

Answer options

  • There is no difference
  • v-text overwrites the entire textContent of the element
  • v-text is faster
  • v-text renders HTML
Show the answer

Correct answer:

  • v-text overwrites the entire textContent of the element