v-bind notes
TL:DR
- In Vue, you can bind attributes by using
v-bind
. - You can use object type to bind of all of attributes needed for a element.
- You can bind all other attributes by using
v-bind
attribute once. - You can't bind
v-on
to instance.
詳細講解
來,提供 Codepen。
See the Pen BaBGOOX by iigmir (@iigmir) on CodePen.