Constructors constructor new Igx Icon Service ( _sanitizer , _httpClient , _platformUtil , _document ) : IgxIconService Parameters _sanitizer: DomSanitizer _httpClient: HttpClient _platformUtil: PlatformUtil _document: any Accessors default Family get defaultFamily( ) : string Returns string set defaultFamily( className ) : void Parameters Returns void Methods add Svg Icon add Svg Icon ( name , url , family ? , stripMeta ? ) : void Parameters name: string url: string family: string = ... stripMeta: boolean = false Returns void add Svg Icon From Text add Svg Icon From Text ( name , iconText , family ? , stripMeta ? ) : void Parameters name: string iconText: string family: string = '' stripMeta: boolean = false Returns void family Class Name family Class Name ( alias ) : string Parameters Returns string get Svg Icon get Svg Icon ( name , family ? ) : SafeHtml Parameters name: string family: string = '' Returns SafeHtml is Svg Icon Cached is Svg Icon Cached ( name , family ? ) : boolean Parameters name: string family: string = '' Returns boolean register Family Alias register Family Alias ( 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: