Component and HTML unique id generation plugin for Vue.js
npm install vue-unique-id
uid by default) for each Vue.js component.
javascript
import UniqueId from 'vue-unique-id';
// or
const UniqueId = require('vue-unique-id');
Vue.use(UniqueId);
`
Examples
$3
Each Vue component has a unique uid property.
`javascript
const MyComponent = {
created() {
console.log("This component's unique id is: " + this.uid);
},
};
`
$3
In order for an 's