Created
February 22, 2021 13:19
-
-
Save vladimirlukyanov/543926bc29b34c050c60b65c39a6d1e8 to your computer and use it in GitHub Desktop.
Render Vue.js from string or AJAX call context
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
let el = Vue.compile(`<MuiIcon icon="${icon}" />`); | |
el = new Vue({ | |
components: { | |
MuiIcon | |
}, | |
vuetify, | |
render: el.render, | |
staticRenderFns: el.staticRenderFns | |
}).$mount(); | |
return el.$el.outerHTML; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment