Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Last active October 30, 2019 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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