Wrapping JSONEditor in Vue as Well as Laravel Blade
UPDATED November 05 2017
This will cover how to make a JSONEditor component that I can then use in a Blade template and listen to events.
You will end up with this:
First making sure I have all the packages I need:
//package.json
"devDependencies": {
"axios": "^0.17",
"bootstrap-sass": "^3.3.7",
"cross-env": "^5.0.1",
"jquery": "^3.2",
"laravel-mix": "^1.0",
"lodash": "^4.17.4",
"vue": "^2.1.10"
},
"dependencies": {
"select2": "^4.0.5",
"jsoneditor": "^5.9.6"
}
And to load it into my bootstrap file: