Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created February 23, 2017 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/bda07ec08656ccf2fb7e15ffa4c40a2d to your computer and use it in GitHub Desktop.
Save justinyoo/bda07ec08656ccf2fb7e15ffa4c40a2d to your computer and use it in GitHub Desktop.
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