Created
May 5, 2017 15:51
-
-
Save shshaw/dfe5338ba5ea52c15a83addf0f419858 to your computer and use it in GitHub Desktop.
pPWxRx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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