Constructors constructor new IgxIconService ( _sanitizer , _httpClient , _platformUtil , _document ) : IgxIconService Parameters _sanitizer: DomSanitizer _httpClient: HttpClient _platformUtil: PlatformUtil _document: any Accessors defaultFamily get defaultFamily( ) : string Returns string set defaultFamily( className ) : void Parameters Returns void Methods addSvgIcon addSvgIcon ( name , url , family ? , stripMeta ? ) : void Parameters name: string url: string family: string = ... stripMeta: boolean = false Returns void addSvgIconFromText addSvgIconFromText ( name , iconText , family ? , stripMeta ? ) : void Parameters name: string iconText: string family: string = '' stripMeta: boolean = false Returns void familyClassName familyClassName ( alias ) : string Parameters Returns string getSvgIcon getSvgIcon ( name , family ? ) : SafeHtml Parameters name: string family: string = '' Returns SafeHtml isSvgIconCached isSvgIconCached ( name , family ? ) : boolean Parameters name: string family: string = '' Returns boolean registerFamilyAlias registerFamilyAlias ( alias , className ? ) : this Parameters alias: string className: string = alias Returns this Legend Module Object literal Variable Function Function with type parameter Index signature Type alias Type alias with type parameter Enumeration Enumeration member Property Method Interface Interface with type parameter Constructor Property Method Index signature Class Class with type parameter Constructor Property Method Accessor Index signature Inherited constructor Inherited property Inherited method Inherited accessor Protected property Protected method Protected accessor Private property Private method Private accessor Static property Static method
Ignite UI for Angular Icon Service -
The Ignite UI Icon Service makes it easy for developers to include custom SVG images and use them with IgxIconComponent. In addition it could be used to associate a custom class to be applied on IgxIconComponent according to given font-family.
Example: