1.0.0 • Published 6 years ago

@estudioliver/vue-uuid-v4 v1.0.0

Weekly downloads
59
License
MIT
Repository
github
Last release
6 years ago

vue-uuid-v4

Plugin Vue to easy get UUIDv4

Requirements

  • Vue.js ^1.0.0 (Compatible with Vue 1.0 or 2.0)
  • A module bundler such as webpack, or transpiler ES6.

Installation

$ npm install --save @estudioliver/vue-uuid-v4

Usage

import Vue from 'vue'
import uuid from '@estudioliver/vue-uuid-v4'
import App from './App.vue'

// The plugin is loaded.
Vue.use(uuid)

new Vue({
  el: '#app',
  render: h => h(App),
  mounted() {
   console.log(this.$uuidKey) // --> b9c9aa52-16b8-4745-a945-2846c81eeb82
  }
});