Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would you mind elaborating a bit on "a wide array of utility functions that you would typically use in your vue.js app."?

I am an amateur developer (home projects) and started to use Vue which I find excellent. I had the idea, though, that using Vue and jQuery at the same time is not correct (= technically it works but it is not recommended as Vue is supposed to do the jQuery things. If you use jQuery then your Vue design is wrong. Again, this was my understanding). Except for AJAX where I use qwest anyway.



You have this pretty much right.

You want to avoid overlapping jQuery and Vue for areas both cover such as event binding and DOM manipulation. This should be left to Vue.

jQuery provides a number of other functions but AJAX is the major part of this.

See https://api.jquery.com/category/utilities/

If you already have a solution for AJAX, you might be interested in looking into a more generic library to complement Vue, such as Lodash https://lodash.com/

A quick example: http://colintoh.com/blog/lodash-10-javascript-utility-functi...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: