Created
May 29, 2020 11:47
-
-
Save TheBojda/dde89f047ad75eae9ccd7271c153198d to your computer and use it in GitHub Desktop.
Vue.js TODO component host file example
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Vue.js TODO Example</title> | |
<script src="https://unpkg.com/vue"></script> | |
<script src="https://unpkg.com/http-vue-loader"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<todo></todo> | |
</div> | |
<script> | |
new Vue({ | |
el: '#app', | |
components: { | |
'todo': httpVueLoader('todo.vue') | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment