v-bind notes

TL:DR

  1. In Vue, you can bind attributes by using v-bind.
  2. You can use object type to bind of all of attributes needed for a element.
  3. You can bind all other attributes by using v-bind attribute once.
  4. You can't bind v-on to instance.

詳細講解

來,提供 Codepen。

See the Pen BaBGOOX by iigmir (@iigmir) on CodePen.