Last active
October 30, 2019 22:42
-
-
Save oleersoy/a70c1e455cde8a986bc79b6e3477cd49 to your computer and use it in GitHub Desktop.
google.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const googleLogoURL = | |
"https://raw.githubusercontent.com/fireflysemantics/logo/master/Google.svg"; | |
@Component({ | |
selector: 'my-app', | |
templateUrl: './app.component.html', | |
styleUrls: [ './app.component.css' ] | |
}) | |
export class AppComponent { | |
constructor ( | |
private matIconRegistry: MatIconRegistry, | |
private domSanitizer: DomSanitizer) { | |
this.matIconRegistry.addSvgIcon( | |
"logo", | |
this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment