summaryrefslogtreecommitdiff
path: root/public/js/components
diff options
context:
space:
mode:
authorYukai Huang2016-12-24 11:50:57 +0800
committerYukai Huang2016-12-24 11:50:57 +0800
commit99dd10772422b66b7f98f1483b5fa3225e3e86e0 (patch)
treeb9e4675d4ee9d6b242763ded01f7157a771bf580 /public/js/components
parenta06fad974e66c8c5854985fe12fbadbb43cc9c7e (diff)
Basic setup for Vue app
Diffstat (limited to 'public/js/components')
-rw-r--r--public/js/components/HelloWorld.vue21
1 files changed, 21 insertions, 0 deletions
diff --git a/public/js/components/HelloWorld.vue b/public/js/components/HelloWorld.vue
new file mode 100644
index 00000000..d8e3007f
--- /dev/null
+++ b/public/js/components/HelloWorld.vue
@@ -0,0 +1,21 @@
+<template>
+ <h1>{{ message }}</h1>
+</template>
+
+<script>
+export default {
+ name: 'HelloWorld',
+
+ data() {
+ return {
+ message: 'Hello Vue'
+ }
+ }
+}
+</script>
+
+<style scoped>
+h1 {
+ color: blue;
+}
+</style>