Skip to content

Commit 08d8d21

Browse files
author
Patrick Dolega
committed
Merge branch 'master' into master2
2 parents 73b9acb + 540e35c commit 08d8d21

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
package-lock.json
33
Exercises.pdf
4+
.idea/

cli-socks/src/App.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
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

cli-socks/src/router.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Vue from "vue";
22
import Router from "vue-router";
33
import Home from "./views/Home.vue";
4-
4+
import Cart from "./views/Cart.vue";
55
Vue.use(Router);
66

77
export 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")

cli-socks/src/views/Cart.vue

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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>

0 commit comments

Comments
 (0)