@skyrpex/makes-uuids
v1.0.0
Published
Mixin for Vue that generates UUIDs
Downloads
199
Readme
Makes UUIDs
Works with:
Mixin for Vue that generates UUIDs. Each user ID has a unique UUID assigned to it.
Installation
npm install @skyrpex/makes-uuids
Usage
<template>
<form>
<div class="form-group">
<label :for="uuid('name')">Name</label>
<input type="text" class="form-control" :id="uuid('name')" placeholder="Name">
</div>
<div class="form-group">
<label :for="uuid('email')">Email</label>
<input type="email" class="form-control" :id="uuid('email')" placeholder="Email">
</div>
</form>
</template>
<script>
import makesUuids from '@skyrpex/makes-uuids';
export default {
mixins: [
// The default method name is 'uuid'.
makesUuids({ methodName: 'uuid' }),
],
};
</script>