When you open a modal though the API $, params).

You have two ways to get params:

Use scoped-slot

<template v-slot="{ params }">
  <!-- modal content -->

On @beforeOpen event

<vue-final-modal @before-open="event => event.ref.params">
  <!-- modal content -->
params will be reset to {} automatically after closed event. You can prevent the modal from resetting the params to an empty object by calling event.stop() .
Edit this page on GitHub Updated at Fri, Feb 3, 2023