Socket
Book a DemoInstallSign in
Socket

vue-component-uuid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-component-uuid

A Vue.js plugin that adds unique IDs to components

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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>

Keywords

vue

FAQs

Package last updated on 24 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts