@visa/nova-angular
Version:
Visa Product Design System Nova Angular library
17 lines (16 loc) • 615 B
TypeScript
import * as i0 from "@angular/core";
/**
* Service that generates unique IDs for DOM nodes.
* Note that this service should not be used inside templates and should only be used within classes.
* @docs {@link https://design.visa.com/angular/services/id-generator | See docs}
*/
export declare class IdGenerator {
private appId;
/**
* Generates a unique ID with a specific prefix.
* @param prefix Prefix to add to the ID.
*/
newId(prefix?: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<IdGenerator, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<IdGenerator>;
}