mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 18:19:40 +00:00
Add server-side rendering (via bundleRenderer, as this is what the Vue docs recommend, and apparently the only way it does encapsulation)
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import './css/site.css';
|
||||
import Vue from 'vue';
|
||||
import router from './router';
|
||||
|
||||
const App = require('./components/app/app.vue.html');
|
||||
import VueRouter from 'vue-router';
|
||||
import { routes } from './routes';
|
||||
Vue.use(VueRouter);
|
||||
|
||||
new Vue({
|
||||
el: 'app',
|
||||
render: h => h(App, { props: {} }),
|
||||
router: router
|
||||
el: '#app-root',
|
||||
router: new VueRouter({ mode: 'history', routes: routes }),
|
||||
render: h => h(require('./components/app/app.vue.html'))
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user