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

14 lines
272 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2020-09-24 14:47:45 -04:00
import { v1 } from 'ember-uuid';
/**
* A function that generates a component ID, based on UUID.
* @return {string}
*/
export function generateComponentID() {
return `component-${v1()}`;
}