Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created January 24, 2018 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/8fe920caf09acd3ca7aa8a64add42a2e to your computer and use it in GitHub Desktop.
Save matthieu-D/8fe920caf09acd3ca7aa8a64add42a2e to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import ComponentWithMethods from './component-with-methods/component-with-methods.vue'
import SimpleTsComponent from './simple-ts-component'
Vue.component('global-component', {
template: '<div> Hi I am a global component </div>'
});
var app = new Vue({
el: '#app',
components: { SimpleTsComponent, ComponentWithMethods }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment