diff options
author | Yukai Huang | 2016-12-24 11:50:57 +0800 |
---|---|---|
committer | Yukai Huang | 2016-12-24 11:50:57 +0800 |
commit | 99dd10772422b66b7f98f1483b5fa3225e3e86e0 (patch) | |
tree | b9e4675d4ee9d6b242763ded01f7157a771bf580 /public/js/components | |
parent | a06fad974e66c8c5854985fe12fbadbb43cc9c7e (diff) |
Basic setup for Vue app
Diffstat (limited to 'public/js/components')
-rw-r--r-- | public/js/components/HelloWorld.vue | 21 |
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> |