Skip to content

Commit ebba1a9

Browse files
committed
Added navigation links
1 parent 82fe1ef commit ebba1a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/App.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
<nav class="navbar navbar-default">
44
<div class="container-fluid">
55
<div class="navbar-header">
6-
<a href="#" class="navbar-brand">E-commerce Inc.</a>
6+
<router-link to="/" class="navbar-brand"><strong>E-commerce Inc.</strong></router-link>
77
</div>
88

99
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
1010
<ul class="nav navbar-nav">
11-
<li><a href="#">Products</a></li>
12-
<li><a href="#">Cart</a></li>
11+
<li><router-link to="/">Products</router-link></li>
12+
<li><router-link to="/cart">Cart</router-link></li>
1313
</ul>
14+
1415
<div class="nav navbar-nav navbar-right">
1516
<div class="stats">{{ cart.items.length }} <template v-if="cart.items.length == 1">item</template><template v-else>items</template> in cart, totalling {{ cartTotal | currency }}</div>
1617
</div>

0 commit comments

Comments
 (0)