Skip to content

Instantly share code, notes, and snippets.

@CryDeTaan
Created October 7, 2019 05:46
Show Gist options
  • Save CryDeTaan/17a52feb27d5e407db04bb1584121144 to your computer and use it in GitHub Desktop.
Save CryDeTaan/17a52feb27d5e407db04bb1584121144 to your computer and use it in GitHub Desktop.
Gist for medium post
/* ... SNIP ... */
require('./bootstrap');
// 1. Comment out this following line:
// window.Vue = require('vue');
// 2. Add below the above commented-out line:
import Vue from 'vue';
import VueRouter from "vue-router";
window.Vue = Vue;
Vue.use(VueRouter);
import Form from "./utilities/Form";
window.Form = Form;
import router from './routes';
/* ... SNIP ... */
// 3. Update the new Vue intance at the bottom of the file.
new Vue({
el: '#app',
router
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment