ngx-avatars
Version:
A universal avatar component for Angular applications that fetches / generates avatar based on the information you have about the user.
19 lines (18 loc) • 432 B
TypeScript
import { AvatarSource } from './sources/avatar-source.enum';
/**
* Represents avatar configuration object.
*/
export interface AvatarConfig {
/**
* The avatars colors.
*/
colors?: string[];
/**
* The order in which the avatar sources will be used.
*/
sourcePriorityOrder?: AvatarSource[];
/**
* Disable custom source (for custom images) cache.
*/
disableSrcCache?: boolean;
}