[Vuejs]-ReCompile template after rending vueJs

0👍

jQuery DataTables is not a Vue native component; therefore, it’s not reactive. This mean you cannot wire ‘@click’ event as shown in your code. (Unless you’re doing it in created phase which is probably what cause this issue where you can’t rewire the event in later phases.)

(Shameless Plug) check out my example Vue component on how to handle click with data-action attribute: https://github.com/niiknow/vue-datatables-net

It use jQuery to handle click, then propagate/$emit the event (name defined as data-action attribute) to the Vue component.

Leave a comment