1.0.0 • Published 5 years ago

vue-component-uuid v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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>