LoginSignup
0
0

More than 5 years have passed since last update.

Vue.js 0.12.1 になって、改善されたこと。

Posted at

ver 0.12.1 になって、 component の中で使う props の validation の記述ができるようになったのは便利そう。他にも変更点はいくつかあるけど、中でも困っていた<content>のエラーが改善されたのでメモしておく。

0.12.0系ではエラーになる書き方。

demo

html
<div id="app">
    <cmpo>this is app message</cmpo>
    <cmpo></cmpo>
</div>

<template id="cmpo">
    <p>this is cmpo message</p>
    <content></content>
</template>
javascript
Vue.component('cmpo', {
    template: '#cmpo',
});

new Vue({
    el: '#app',
});
結果
this is cmpo message
this is app message

this is cmpo messageがもうひとつ表示されて欲しかった。
この問題は v0.12.1 になって改善されたみたい。

0
0
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
0
0