Skip to content

Instantly share code, notes, and snippets.

@shshaw
Created May 5, 2017 15:51
Show Gist options
  • Save shshaw/dfe5338ba5ea52c15a83addf0f419858 to your computer and use it in GitHub Desktop.
Save shshaw/dfe5338ba5ea52c15a83addf0f419858 to your computer and use it in GitHub Desktop.
pPWxRx
console.clear();
var t = Vue.compile('<div><input :value="value" /></div>');
var MyC = Vue.extend({ props: ['value'], render: t.render });
console.log(t);
console.log(MyC);
new Vue({
el: 'div',
template: '<div><my-c value="blah"></my-c></div>',
components: { MyC }
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.4/vue.min.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment