vue-component-uuid
v1.0.0
Published
A Vue.js plugin that adds unique IDs to components
Readme
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-uuidUsage
import Vue from 'vue';
import VueComponentUuid from 'vue-component-uuid';
Vue.use(VueComponentUuid);<template>
<div>
{{ $uid }}
</div>
</template>
<script>
export default {}
</script>