Created
December 14, 2015 02:35
-
-
Save osyoyu/6b9c9331514d7a626655 to your computer and use it in GitHub Desktop.
たのしいVue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.component('hoge', { | |
template: '#hoge-template' | |
// 以下略 | |
}); | |
new Vue({ | |
el: '#wrapper' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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