import { Component } from '@angular/core' ; import { DomSanitizer } from '@angular/platform-browser' ; import { MdIconRegistry } from '@angular/material' ; @ Component ( { selector : 'qs-app' , templateUrl : './app.component.html' , styleUrls : [ './app.component.scss' ] , } ) export class AppComponent { constructor ( private _iconRegistry , private _domSanitizer ) { this . _iconRegistry . addSvgIconInNamespace ( 'assets' , 'github' , this . _domSanitizer . bypassSecurityTrustResourceUrl ( 'assets/icons/github.svg' ) ) ; this . _iconRegistry . addSvgIconInNamespace ( 'assets' , 'logo' , this . _domSanitizer . bypassSecurityTrustResourceUrl ( 'assets/icons/logo.svg' ) ) ; this . _iconRegistry . addSvgIconInNamespace ( 'assets' , 'online-shop' , this . _domSanitizer . bypassSecurityTrustResourceUrl ( 'assets/icons/online-shop.svg' ) ) ; } }