Vue · Junior · Question 18 of 75
Do you need .value when using a ref in the template?
- ✓Correct answer: No, top-level refs are auto-unwrapped in templates
- 2Yes, always write
{{ count.value }} - 3Refs can't be used in templates at all
Explanation
Unwrapping applies to top-level properties of the template context. A ref nested inside a plain object ({{ obj.count }}) is not unwrapped and would need .value.