mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
18 lines
559 B
TypeScript
18 lines
559 B
TypeScript
import './css/site.css';
|
|
import 'bootstrap';
|
|
import Vue from 'vue';
|
|
import VueRouter from 'vue-router';
|
|
Vue.use(VueRouter);
|
|
|
|
const routes = [
|
|
{ path: '/', component: require('./components/home/home.vue.html') },
|
|
{ path: '/counter', component: require('./components/counter/counter.vue.html') },
|
|
{ path: '/fetchdata', component: require('./components/fetchdata/fetchdata.vue.html') }
|
|
];
|
|
|
|
new Vue({
|
|
el: '#app-root',
|
|
router: new VueRouter({ mode: 'history', routes: routes }),
|
|
render: h => h(require('./components/app/app.vue.html'))
|
|
});
|