# copy

Vue directive to add a click-to-copy

Source

# Installation

Global install:

import Vue from "vue"
import { copy } from "vuetensils/src/directives"

Vue.directive("copy", copy)

Local install:

<script>
  import { copy } from "vuetensils/src/directives"

  export default {
    directives: {
      copy,
    },
  }
</script>

# Usage

Note that you must pass a string inside the v-copy value. The example has backticks. Single quotes would work as well.

Last Updated: 4/15/2020, 12:16:00 AM