I'm trying to move away from jQuery towards Vue 2.0, which for the most part the transition has felt very easy.
However, when making AJAX calls and interacting with the response I'm approaching it wrong and I can't get into the Vue mindset of doing things.
For example, I have a "Modal trigger" which when clicked opens a modal window and makes an AJAX call to a href which is bound to the trigger and then returns the the html to v-html in the modal. My problem comes when I want to have an @click event in the modal, obviously it doesn't work because Vue hasn't registered it, which makes sense.
In jQuery where I could just say for example $(document).on('click'... so that it could recognise any AJAX loaded pages, I cannot work out a similar option in Vue, I'm clearly approaching the situation wrong.
I've spent hours searching for a solution and I'm no further forward, could anyone with experience of similar situations please let me know how they overcame their issues or point me in the direction of tutorials that deal with similar problems.
Thank you in advance.