How to use JQuery inside Vue | add other js library inside Vue
Published in
2 min readMar 6, 2018
JQuery has awesome features. and a lot of plugins . sometimes someone wants to add jquery plugin but confused how connect jquery inside vue.
- Major thinking points is JQuery package add globally or indivisually !
# Indivually setup
If jquery use only one page that time indivually setup is good practise .
test.vue
========import JQuery from 'jquery'
let $ = JQuery
# Globally setup
App.js
======
window.$ = require('jquery')
window.JQuery = require('jquery')
# other js packages
App.js
======
window._ = require('underscore')
window.select = require('select.js')
code4mk @code4mk