Socket
Socket
Sign inDemoInstall

vue-component-uuid

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-component-uuid

A Vue.js plugin that adds unique IDs to components


Version published
Maintainers
1
Created

Readme

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

FAQs

Last updated on 24 Jan 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc