File tree Expand file tree Collapse file tree 4 files changed +30
-2
lines changed
Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 11node_modules
22package-lock.json
33Exercises.pdf
4+ .idea /
Original file line number Diff line number Diff line change 55
66 <div class =" links" >
77 <router-link to =" /" >Home</router-link > |
8- <router-link to =" /counter" title =" Vuex example" >Counter</router-link >
8+ <router-link to =" /counter" title =" Vuex example" >Counter</router-link > |
9+ <router-link to =" /cart" title =" Cart summary" >Cart</router-link >
910 </div >
1011 </div >
1112
Original file line number Diff line number Diff line change 11import Vue from "vue" ;
22import Router from "vue-router" ;
33import Home from "./views/Home.vue" ;
4-
4+ import Cart from "./views/Cart.vue" ;
55Vue . use ( Router ) ;
66
77export default new Router ( {
@@ -21,6 +21,11 @@ export default new Router({
2121 // which is lazy-loaded when the route is visited.
2222 component : ( ) => import ( /* webpackChunkName: "counter" */ "./views/Counter.vue" )
2323 } ,
24+ {
25+ path : "/cart" ,
26+ name : "cart" ,
27+ component : Cart
28+ } ,
2429 // {
2530 // path: '/product/:id',
2631 // component: () => import(/* webpackChunkName: "productDetail" */ "./views/ProductPage.vue")
Original file line number Diff line number Diff line change 1+ <template >
2+ <div >
3+ HELLO FROM THE CART
4+ </div >
5+
6+ </template >
7+
8+ <script >
9+ import {Component , Vue } from " vue-property-decorator" ;
10+
11+ @Component ({
12+ components: {}
13+ })
14+ export default class Cart extends Vue {
15+
16+ }
17+ </script >
18+
19+ <style scoped>
20+
21+ </style >
You can’t perform that action at this time.
0 commit comments