Intro
๐ญ
Vuejs-confirm-dialog
How does it work? The idea is simple, this function โ createConfirmDialog
gets a modal component and magically provides to it emits confirm
and cancel
and props values. This function returns to you a dialog instance that controls the rendering of the modal component and reacts to user decisions. It reduces you to write all the boilerplate code over and over again and makes it simple to reuse your modals everywhere in your project.You can work with dialogs like with promises or with hooks that the dialog instance generates for you.