-
-
Save kwhandy/ec882c778f7bf6dd36320524a64f5a01 to your computer and use it in GitHub Desktop.
Static Vue SFC
This file contains hidden or 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>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