Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created November 24, 2017 11:27
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 christiannwamba/7a6399bdbd82dd23a0126f0c36f5f34e to your computer and use it in GitHub Desktop.
Save christiannwamba/7a6399bdbd82dd23a0126f0c36f5f34e to your computer and use it in GitHub Desktop.
Vue.component('header-text', {
render: function (createElement) {
return createElement(
'h' + this.level,
this.$slots.default
)
},
props: {
level: {
type: Number,
required: true
}
}
})
new Vue({
el:"#root"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment