Skip to content

Instantly share code, notes, and snippets.

@pxwee5
Last active December 18, 2020 05:58
Show Gist options
  • Save pxwee5/965a7f334cc5c830c644d87790fe1194 to your computer and use it in GitHub Desktop.
Save pxwee5/965a7f334cc5c830c644d87790fe1194 to your computer and use it in GitHub Desktop.
Static Vue SFC
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello World</title>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/http-vue-loader"></script>
</head>
<body>
<h1>Static HTML With Vue.js Single File Component</h1>
<div id="app">
<span>Hello</span>
<app-world></app-world>
</div>
<script>
new window.Vue({
el: '#app',
components: {
'app-world': window.httpVueLoader('/js/components/AppWorld.vue')
},
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment