LoginSignup
8
9

More than 5 years have passed since last update.

Vue.js 0.12.0 でコンポーネント周りが変わる

Last updated at Posted at 2015-06-03

New in 0.12.0-rc

  • v-component 廃止
  • v-with 廃止
  • paramAttributesprops に改名

0.11 まで

Vue.component('my-element', {
});
<div v-component="my-element" v-with="foo: foo, bar: 'bar'"></div>

0.12

Vue.component('my-element', {
  props: ['foo', 'bar'],
});
<my-element foo="{{foo}}" bar="bar"></my-element>
または
<div is="my-element" foo="{{foo}}" bar="bar"></div>
8
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9