Vue · Junior · Question 18 of 75

Do you need .value when using a ref in the template?

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.

Further reading

Problem with a question

Vue · Junior · question 18

Test yourself

Take the Vue · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz