Created
March 6, 2017 00:33
-
-
Save freearhey/16775a8560602c3e92f8312d239eb622 to your computer and use it in GitHub Desktop.
Пример с подключением компонента во Vue 2 через функцию render
This file contains 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
var Vue = require('vue') | |
var hello = require('./components/hello.vue') | |
new Vue({ | |
el: 'body', | |
render: function(createElement) { | |
return createElement(hello) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment