Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created February 23, 2017 11:31
Embed
What would you like to do?
Running Vue.js with TypeScript on ASP.NET Core Application
// main.js
import Vue from 'vue'
import App from './App'
import router from './router'
new Vue({
el: '#app',
router,
template: '<App/>',
components: { App }
})
// main.ts
import * as Vue from "vue";
import * as App from "./App.vue";
import router from "./router";
new Vue({
el: "#app",
router,
render: h => h(App)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment