Skip to content

Commit

Permalink
Merge pull request #154 from esac-ic/fix/vue-element-not-found
Browse files Browse the repository at this point in the history
Fix for element not found vue
  • Loading branch information
wouterbles authored Jun 18, 2019
2 parents 1d46308 + 73b3c10 commit 0495b3b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions resources/assets/js/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ require('../vue/zekeringen/zekeringen');

Vue.component('auto-complete-field', require('../vue/components/AutoCompleteField').default);

/**
* Create vue for the core package
*/
const core = new Vue({
el: '#app',
store
});
if(document.getElementById('app') !== null) {
/**
* Create vue for the core package
*/
const core = new Vue({
el: '#app',
store
});
}

0 comments on commit 0495b3b

Please sign in to comment.