Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Last active October 30, 2019 22:42
Show Gist options
  • Save oleersoy/a70c1e455cde8a986bc79b6e3477cd49 to your computer and use it in GitHub Desktop.
Save oleersoy/a70c1e455cde8a986bc79b6e3477cd49 to your computer and use it in GitHub Desktop.
google.ts
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