HelloWorld.vue 624 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class='hello'>
  3. <template v-for='i in 10'>
  4. <h1 :key='i'>{{ msg }} ---- {{i}}</h1>
  5. <h2 :key='i'>Essential Links</h2>
  6. </template>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. name: 'HelloWorld',
  12. data() {
  13. return {
  14. msg: 'Welcome to Your Vue.js App'
  15. }
  16. }
  17. }
  18. </script>
  19. <!-- Add "scoped" attribute to limit CSS to this component only -->
  20. <style scoped>
  21. h1,
  22. h2 {
  23. font-weight: normal;
  24. }
  25. ul {
  26. list-style-type: none;
  27. padding: 0;
  28. }
  29. li {
  30. display: inline-block;
  31. margin: 0 10px;
  32. }
  33. a {
  34. color: #42b983;
  35. }
  36. </style>