Closed dipuahmed018 closed 7 months ago
In vue-final-modal 4, the only way to define a dynamic modal is useModal()
For example:
const { open } = useModal({
component: NotificationModal,
attrs: {
notification: "Hello world!"
}
})
open()
Check the useModal()
example https://v4.vue-final-modal.org/use-cases/modal-nested
and stackblitz live demo
Trying to do the same thing with vue-final-modal 4 but open method does not accept any second argument. Is dynamic modal the only option I have?
vfm.open('notification', { notification: "Hello wolrd!" })