Vue · Junior · Question 53 of 75
What does v-model.trim do?
- ✓Correct answer: Removes leading and trailing whitespace from the value before it's stored
- 2Limits the input length
- 3Removes all spaces inside the text
Explanation
Modifiers can be combined, e.g. v-model.trim.lazy. The DOM value may still show spaces while typing.