10 lines
194 B
JavaScript
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()}`;
|
|
}
|