Vue.js directive to submit and server-side validatate forms using AJAX
Submitting a Form using classical post request will work but it does don’t give the user feedback while it’s submitting and overall not a great user experience. I find myself creating Laravel apps which uses Vue in many places, but if it’s not a complete SPA (without Vue router), to make forms more interactive I have created a directive v-ajax-submit
which I use religiously in my apps to turn boring forms more fun. Continue reading…