Declare js vars from Blade template at Vue prototype level to ease access in vue components

This commit is contained in:
Bubka
2020-03-18 14:54:23 +01:00
parent ab5948ee1d
commit f7a69d8197
2 changed files with 7 additions and 5 deletions

3
resources/js/app.js vendored
View File

@ -8,6 +8,9 @@ import App from './components/App'
import './components'
Vue.prototype.$appSettings = appSettings
Vue.prototype.$appVersion = appVersion
const app = new Vue({
el: '#app',
components: { App },