14 lines
246 B
TypeScript
14 lines
246 B
TypeScript
|
import { Injectable } from '@angular/core';
|
||
|
import ShortUniqueId from 'short-unique-id';
|
||
|
|
||
|
@Injectable({
|
||
|
providedIn: 'root',
|
||
|
})
|
||
|
export class UuidService {
|
||
|
private uid = new ShortUniqueId();
|
||
|
|
||
|
public getUUID(): string {
|
||
|
return this.uid();
|
||
|
}
|
||
|
}
|