nuxt-clipboard2
A "copy to clipboard" module for Nuxt.js using vue-clipboard2
Setup
- Add
nuxt-clipboard2
dependency using yarn or npm to your project - Add
nuxt-clipboard2
tomodules
section ofnuxt.config.js
modules: 'nuxt-clipboard2'
Usage
You can use $copyText in almost any context using app.$copyText
or this.$copyText
(Including store actions).
See vue-clipboard2 official docs for more usage information.
methods: async { try await this; catch e console; } ;
License
Copyright (c) webcore-it