petervmeijgaard / vue-2-boilerplate

Vue 2 boilerplate for developing medium to large single page applications.
865 stars 253 forks source link

help question #47

Closed paolog22 closed 7 years ago

paolog22 commented 7 years ago

hi sir.. is there any other way to use existing jquery with this boilerplate ? because i have this working UI with jquery and i want to use it and make the data with vuejs .. thanks sir.

paolog22 commented 7 years ago

this is done! :D hahah thanks sir,, you may close it.. for reference for other.. all your jquery code put in inside $(document).ready( () => { });

petervmeijgaard commented 7 years ago

Hi @paolog22!

It's cleaner to call the jQuery plugins inside the mounted-method instead of using $(document).ready{ () => }. This way all the stuff is loaded when the application has been booted correctly.