Skip to content

Instantly share code, notes, and snippets.

@yyx990803
Created November 2, 2015 20:20
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 yyx990803/47b19d36e02ca8945a6b to your computer and use it in GitHub Desktop.
Save yyx990803/47b19d36e02ca8945a6b to your computer and use it in GitHub Desktop.
var Example = Vue.extend({
template: '<div>{{ message }}</div>',
data: function () {
return {
message: 'Hello Vue.js!'
}
}
})
// register it with the tag <example>
Vue.component('example', Example)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment