Question · Vue.js course · Module 2: Template Syntax
v-once After a Data Change
missionCode changes from 'A-1' to 'B-2'. What does <p v-once>Code: {{ missionCode }}</p> show then?
Answer options
- Code: A-1
- Code: B-2
- Code: A-1 B-2
- An empty paragraph
Show the answer
Correct answer:
- Code: A-1