Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active March 6, 2017 00:55
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/c55754f2d490d423059930b8e22da890 to your computer and use it in GitHub Desktop.
Save justinyoo/c55754f2d490d423059930b8e22da890 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 Vue from "vue";
import 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