Vue loop binding event listener only binds with the first few elements.

I faced a problem when I had to attach an event listener to many elements rendered through the loop. When rendered, the click event was only attached to the first element and all the other elements didn’t have the listener attached. So, I solved this by passing an additional argument to the listener which was … Read moreVue loop binding event listener only binds with the first few elements.

Categories Vue