Created
October 7, 2019 05:46
-
-
Save CryDeTaan/17a52feb27d5e407db04bb1584121144 to your computer and use it in GitHub Desktop.
Gist for medium post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ... 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