templates/views
var Home = require('./views/Home.vue')
var Service = require('./views/Service.vue')
const Foo = { template: '<div>foo</div>' }
const Bar = { template: '<div>bar</div>' }
var Home = require('./views/Home.vue')
var Service = require('./views/Service.vue')
var Home = require('./views/Home.vue')
var Service = require('./views/Service.vue')
Vue.use(VueRouter)
const router = new VueRouter({
mode: 'history',
routes: [
{ path: '/', component: Home },
{ path: '/service ', component: Service }
]
})
new Vue({
el: '#app',
router: router
})
То это градиентом нужно ?