Last active
July 7, 2016 22:42
-
-
Save tiagoeborsanyi/3a372b5b09f0802b03a563c3864b6326 to your computer and use it in GitHub Desktop.
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
mains.js | |
import Vue from 'vue' | |
//Subcomponentes de Create.vue | |
import Item from './components/create/Timelineitem.vue' | |
Vue.component('item', { | |
template: Item | |
}) | |
Timelineitem.vue | |
<template> | |
<h1>teste</h1> | |
</template> | |
//E depois poderia char esse componente em qualquer outro template que quiser | |
usando => <item></item> | |
Mas da erro. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment