Skip to content

Commit

Permalink
Simplify router like base install
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Richter committed Apr 11, 2018
1 parent 219be61 commit 1aac6dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import router from './router.js'
/* eslint-disable no-new */
new Vue({
el: '#app',
router: router(Vue),
router,
render: h => h(App),
})
24 changes: 12 additions & 12 deletions src/router.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import Vue from 'vue'
import Router from 'vue-router'

import ListView from './components/ListView/_ListView.vue'

export default (Vue) => {
Vue.use(Router)
Vue.use(Router)

export default new Router({
routes: [
{
path: '/',
name: 'list-view',
component: ListView,
},
],
})

return new Router({
routes: [
{
path: '/',
name: 'list-view',
component: ListView,
},
],
})
}

0 comments on commit 1aac6dd

Please sign in to comment.