The $attrs
object now contains all attributes passed to a component, including class and style.
Vue 2
In Vue 2, v-bind=" $attrs"
forwards all properties that were passed to a component, but not classes and styles, because these get special treatment and are applied to the component’s root element:
Get hands-on with 1200+ tech skills courses.