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

The v-once Directive

What does the v-once directive do in Vue.js?

Answer options

  • Renders the element only once, then treats it as static
  • Displays the element for only one second
  • Limits the number of clicks to one
  • Creates a single component instance
Show the answer

Correct answer:

  • Renders the element only once, then treats it as static