Is there a way to intercept an event in vue and continue it later?

453 Views Asked by At

I want to achieve something that I have seen multiple times on various sites. I'll provide a scenario so it will be easier to understand what I'm trying to achieve. Let's say I have a button which executes file downloading. Sometimes this button might have additional event to open up a modal with some information, after clicking "continue" in this modal, the download event should be fired as if it would without this interception. There might also be a cancel button in that modal which would cancel the download action. How might I achieve this? I already had this implemented using jquery but now I'm reworking my project to use vue and the way I achieved it with jquery was very dirty, hack-ish and unstable.

0

There are 0 best solutions below