screen-capture-_1_.mp4
# install module
$ npm i @s3rver/nuxt-modal
// nuxt.config.js
export default {
//...
modules: ['@s3rver/nuxt-modal']
//...
}
<template>
<div>
<nuxt />
<!-- added line -->
<register-modals />
</div>
</template>
In the main root of the project, create a directory called modals
and save your modals with the vue
extension
// nuxt.config.js
export default {
//...
modal: {
pluginName: "modal", // name plugin
layout: "default", // layout desktop
mobileLayout: "defaultMobile", // layout mobile
mobileSize: 400, // mobile or desktop window size
responsive: false,
},
modules: ['@s3rver/nuxt-modal']
//...
}