Vue · Junior · Question 26 of 75
What does v-model.number do?
- ✓Correct answer: Converts the input value to a number when possible
- 2Allows only digits to be typed
- 3Formats the number with thousands separators
Explanation
Input values are always strings. Other modifiers: .trim removes whitespace and .lazy syncs on change instead of input.