2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-05-17 08:39:37 +03:00
Files
vue-form-wizard/dev-example/main.js
T
cristi 4a9655edd3 Add vue-router to dev deps
Revert router integration due to wrong merge
2017-04-24 22:57:57 +03:00

31 lines
799 B
JavaScript

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import FormWizard from '../src/index'
const First = { template: '<div>First page</div>' }
const Second = { template: '<div>Second page</div>' }
const Third = { template: '<div>Third page</div>' }
const router = new VueRouter({
mode: 'history',
routes: [
{ path: '/first', component: First },
{ path: '/second', component: Second },
{ path: '/third', component: Third }
]
})
Vue.use(VueRouter)
Vue.use(FormWizard)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
router,
el: '#app',
template: '<App/>',
components: {App}
})