Skip to content

Instantly share code, notes, and snippets.

@kwhandy
Forked from pxwee5/index.html
Created December 18, 2020 05:58
Show Gist options
  • Save kwhandy/ec882c778f7bf6dd36320524a64f5a01 to your computer and use it in GitHub Desktop.
Save kwhandy/ec882c778f7bf6dd36320524a64f5a01 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