@ -2,7 +2,8 @@
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/posts">Posts</router-link>
<router-link to="/posts">Posts</router-link> |
<router-link to="/qa">QA</router-link>
</div>
<router-view />
@ -2,6 +2,7 @@ import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Posts from '../views/Posts.vue'
import QAPage from '../views/QAPage'
Vue.use(VueRouter)
@ -16,6 +17,11 @@ const routes = [
name: "Posts",
component: Posts,
},
{
path: "/qa",
name: "QA",
component: QAPage
]
const router = new VueRouter({