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" />

Explanation

It's handy for passing a group of props or attributes to a component without listing them one by one.

Further reading

Problem with a question

Vue · Junior · question 56

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