首页 > 代码库 > vue_extend_component

vue_extend_component

<div id="extend">
    <my></my>
</div>
<script>
    var my=Vue.extend({template:<div>haha</div>});
    Vue.component(my,my);
    new Vue({el:#extend})
</script>

 

vue_extend_component