Last active
September 1, 2018 01:27
-
-
Save jonny-novikov/95cd9285ef474d1fbb126001449bf016 to your computer and use it in GitHub Desktop.
How to debug VueJS applications
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
// you can check dev/prod mode to enable/disable debug mode, then | |
// in your main file index.js or index.html insert following lines | |
if (typeof window !== "undefined" && window !== undefined) { | |
Vue.config.devtools = true; | |
Vue.config.debug = true; | |
// window.vue = new Vue(...); // optional you can expose new or existing main view model to global scope | |
window.Vue = Vue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment