From 7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 15 Jan 2017 18:24:09 -0800 Subject: Initial Vueification --- src/main.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main.js (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js new file mode 100644 index 00000000..e4ae5c1a --- /dev/null +++ b/src/main.js @@ -0,0 +1,26 @@ +// 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' +import SignIn from './components/SignIn' + +const routes = [ + { path: '/', component: SignIn }, + { path: '/signin', component: SignIn } +] + +const router = new VueRouter({ + routes // short for routes: routes +}) + +Vue.use(VueRouter) + +/* eslint-disable no-new */ +new Vue({ + el: '#app', + template: '', + components: { App }, + router: router +}) + -- cgit v1.2.3