https://scaccogatto.github.io/vue-swot/
-
Create your swot slide
make swot NAME=Test
-
Using the following script, create your route:
{
path: '/NAME',
name: 'NAME',
component: () => import(/* webpackChunkName: "name" */ './views/NAME.vue')
}
- Insert the created route into
router.js
import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home'
Vue.use(Router)
export default new Router({
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/base',
name: 'base',
component: () => import(/* webpackChunkName: "reparto-dev" */ './views/Base.vue')
},
{
path: '/NAME',
name: 'NAME',
component: () => import(/* webpackChunkName: "name" */ './views/NAME.vue')
}
]
})
-
Edit
src/views/NAME/data.json
as you wish -
npm install && npm run serve
and open your browser to:http://localhost:8080/
. Move around with keyboard's arrows.