HelloWorld.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div class="hello">
  3. <h1>{{ msg }}</h1>
  4. <h2>Essential Links</h2>
  5. <ul>
  6. <li>
  7. <a
  8. href="https://vuejs.org"
  9. target="_blank"
  10. >
  11. Core Docs
  12. </a>
  13. </li>
  14. <li>
  15. <a
  16. href="https://forum.vuejs.org"
  17. target="_blank"
  18. >
  19. Forum
  20. </a>
  21. </li>
  22. <li>
  23. <a
  24. href="https://chat.vuejs.org"
  25. target="_blank"
  26. >
  27. Community Chat
  28. </a>
  29. </li>
  30. <li>
  31. <a
  32. href="https://twitter.com/vuejs"
  33. target="_blank"
  34. >
  35. Twitter
  36. </a>
  37. </li>
  38. <br>
  39. <li>
  40. <a
  41. href="http://vuejs-templates.github.io/webpack/"
  42. target="_blank"
  43. >
  44. Docs for This Template
  45. </a>
  46. </li>
  47. </ul>
  48. <h2>Ecosystem</h2>
  49. <ul>
  50. <li>
  51. <a
  52. href="http://router.vuejs.org/"
  53. target="_blank"
  54. >
  55. vue-router
  56. </a>
  57. </li>
  58. <li>
  59. <a
  60. href="http://vuex.vuejs.org/"
  61. target="_blank"
  62. >
  63. vuex
  64. </a>
  65. </li>
  66. <li>
  67. <a
  68. href="http://vue-loader.vuejs.org/"
  69. target="_blank"
  70. >
  71. vue-loader
  72. </a>
  73. </li>
  74. <li>
  75. <a
  76. href="https://github.com/vuejs/awesome-vue"
  77. target="_blank"
  78. >
  79. awesome-vue
  80. </a>
  81. </li>
  82. </ul>
  83. </div>
  84. </template>
  85. <script>
  86. export default {
  87. name: 'HelloWorld',
  88. data () {
  89. return {
  90. msg: 'Welcome to Your Vue.js App'
  91. }
  92. }
  93. }
  94. </script>
  95. <!-- Add "scoped" attribute to limit CSS to this component only -->
  96. <style scoped>
  97. h1, h2 {
  98. font-weight: normal;
  99. }
  100. ul {
  101. list-style-type: none;
  102. padding: 0;
  103. }
  104. li {
  105. display: inline-block;
  106. margin: 0 10px;
  107. }
  108. a {
  109. color: #42b983;
  110. }
  111. </style>