1.0.0 • Published 5 years ago
vue-component-uuid v1.0.0
Vue Component UUID
This plugin simply adds a publicly accessible unique id to every component instance in your application.
This is intended to be used by people who wish they could use the private _uid
property on their components, but can't, as explained here.
Installation
NPM
npm i vue-component-uuid
Usage
import Vue from 'vue';
import VueComponentUuid from 'vue-component-uuid';
Vue.use(VueComponentUuid);
<template>
<div>
{{ $uid }}
</div>
</template>
<script>
export default {}
</script>
1.0.0
5 years ago