Skip to content

Instantly share code, notes, and snippets.

@christiannwamba christiannwamba/block2.js Secret
Created Nov 24, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.