<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>

<div id="vue-instance">
    <componente></componente>
    <usandotemplate></usandotemplate>
</div>

<script src="https://cdn.jsdelivr.net/vue/2.1.6/vue.js"></script>

<template id="hello-world-template">
    <div>
        <a href="http://albraga.github.io">albraga</a>
        <textarea></textarea>
        <button>ok</button>
    </div>
</template>

<script>
Vue.component('usandotemplate', {
    template: '#hello-world-template'
});

Vue.component('componente', {
    template: '<h3>componente h3</h3>'
});

var vm = new Vue({
el: '#vue-instance'
});


</script>

</body>
</html>

results matching ""

    No results matching ""