Files
threshold-ui/addons/rose/addon/utilities/component-auto-id.js
T

10 lines
194 B
JavaScript

import { v1 } from 'ember-uuid';
/**
* A function that generates a component ID, based on UUID.
* @return {string}
*/
export function generateComponentID() {
return `component-${v1()}`;
}