Skip to content

Instantly share code, notes, and snippets.

@osyoyu
Created December 14, 2015 02:35
Show Gist options
  • Save osyoyu/6b9c9331514d7a626655 to your computer and use it in GitHub Desktop.
Save osyoyu/6b9c9331514d7a626655 to your computer and use it in GitHub Desktop.
たのしいVue
Vue.component('hoge', {
template: '#hoge-template'
// 以下略
});
new Vue({
el: '#wrapper'
})
<template id="#hoge-template">
<div>
<button>sugoi</button>
<button>poyo</button>
</div>
</template>
<div id="wrapper">
<hoge id="hoge1"></hoge>
<hoge id="hoge2"></hoge>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment