example.vue 476 B

12345678910111213141516171819202122232425262728
  1. <template lang="jade">
  2. div.my-component
  3. h1 {{ msg }}
  4. other-component
  5. </template>
  6. <script>
  7. import OtherComponent from './other-component.vue'
  8. export default {
  9. components: { OtherComponent },
  10. data() {
  11. return {
  12. msg: ( 'Hello, Vue.js!' )
  13. }
  14. }
  15. }
  16. </script>
  17. <style lang="sass" scoped>
  18. $font-stack: Helveric, sans-serif;
  19. $primary-color: #333;
  20. .my-component {
  21. font: 100% $font-stack;
  22. color: $primary-color;
  23. }
  24. </style>