Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <template>
  2. <div>
  3. <about-comp></about-comp>
  4. </div>
  5. </template>
  6.  
  7. <script>
  8. import AboutComp from './About';
  9. export default {
  10. name: "Main",
  11. data(){
  12. return {
  13.  
  14. }
  15. },
  16. comments:{
  17. 'about-comp': AboutComp,
  18. }
  19. }
  20. </script>
  21.  
  22. <style scoped>
  23.  
  24. </style>
  25.  
  26. <template>
  27. <div>
  28. About
  29. </div>
  30. </template>
  31.  
  32. <script>
  33. export default {
  34. name: "about-comp",
  35. data:function(){
  36. return{
  37. }
  38. }
  39. }
  40. </script>
  41.  
  42. <style scoped lang="scss">
  43.  
  44. </style>
  45.  
  46. import Vue from 'vue'
  47. import Router from 'vue-router'
  48. import Main from './views/pages/Main.vue'
  49.  
  50. Vue.use(Router)
  51.  
  52.  
  53. export default new Router({
  54. mode: 'history',
  55. base: process.env.BASE_URL,
  56. routes: [
  57. {
  58. path: '/',
  59. name: 'Main',
  60. component: Main
  61. },
  62. ]
  63. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement