Vue · Junior · Question 56 of 75
What does v-bind="attrs" without an argument do?
const attrs = { id: 'email', type: 'email', required: true }
<input v-bind="attrs" />- ✓Correct answer: Binds every property of the object as a separate attribute
- 2Binds the whole object to an attribute named
attrs - 3It's a syntax error
Explanation
It's handy for passing a group of props or attributes to a component without listing them one by one.