@ztrehagem/nuxt-thin-modal

1.0.1 • Public • Published

@ztrehagem/nuxt-thin-modal

This plugin injects $modal of vue-thin-modal into store and context.

Installation

$ npm install @ztrehagem/nuxt-thin-modal

Usage

Edit your nuxt.config.js.

module.exports = {
  plugins: [
    '@ztrehagem/nuxt-thin-modal'
  ]
}

Then you can access $modal in components, stores and context.

// in components and store
this.$modal

// via context object
context.app.$modal

Note that, the auto installing is disabled in this plugin. In other words, you must mount <modal-portal> component manually. (see Manually mount portal)

Package Sidebar

Install

npm i @ztrehagem/nuxt-thin-modal

Weekly Downloads

1

Version

1.0.1

License

UNLICENSED

Unpacked Size

2.63 kB

Total Files

3

Last publish

Collaborators

  • ztrehagem