Create a gist now

Instantly share code, notes, and snippets.

@justinyoo /main.ts Secret
Created Feb 23, 2017

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