import { NgModule } from '@angular/core' ; import { MatIconRegistry , MatIconModule } from '@angular/material/icon' ; import { DomSanitizer } from '@angular/platform-browser' ; @ NgModule ( { imports : [ MatIconModule ] } ) export class NotaddMatIconsModule { constructor ( matIconRegistry , domSanitizer ) { matIconRegistry . addSvgIconSetInNamespace ( 'mdi' , domSanitizer . bypassSecurityTrustResourceUrl ( 'assets/mdi.svg' ) ) ; matIconRegistry . registerFontClassAlias ( 'NotaddIcon' , 'notadd-icon' ) ; matIconRegistry . registerFontClassAlias ( 'weathericons' , 'wi' ) ; } }