Skip to content

Instantly share code, notes, and snippets.

@TheBojda
Created May 29, 2020 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBojda/dde89f047ad75eae9ccd7271c153198d to your computer and use it in GitHub Desktop.
Save TheBojda/dde89f047ad75eae9ccd7271c153198d to your computer and use it in GitHub Desktop.
Vue.js TODO component host file example
<!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