File tree 4 files changed +30
-2
lines changed
4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
2
package-lock.json
3
3
Exercises.pdf
4
+ .idea /
Original file line number Diff line number Diff line change 5
5
6
6
<div class =" links" >
7
7
<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 >
9
10
</div >
10
11
</div >
11
12
Original file line number Diff line number Diff line change 1
1
import Vue from "vue" ;
2
2
import Router from "vue-router" ;
3
3
import Home from "./views/Home.vue" ;
4
-
4
+ import Cart from "./views/Cart.vue" ;
5
5
Vue . use ( Router ) ;
6
6
7
7
export default new Router ( {
@@ -21,6 +21,11 @@ export default new Router({
21
21
// which is lazy-loaded when the route is visited.
22
22
component : ( ) => import ( /* webpackChunkName: "counter" */ "./views/Counter.vue" )
23
23
} ,
24
+ {
25
+ path : "/cart" ,
26
+ name : "cart" ,
27
+ component : Cart
28
+ } ,
24
29
// {
25
30
// path: '/product/:id',
26
31
// 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