blob: 260e07c73fb4e93545361b523df5fd60e8a36b6a [file] [log] [blame] [edit]
import {Component, Input, OnInit} from '@angular/core';
import {MatIconRegistry} from '@angular/material/icon';
import {DomSanitizer} from '@angular/platform-browser';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent implements OnInit {
constructor(
private matIconRegistry: MatIconRegistry,
private domSanitizer: DomSanitizer
) {
this.matIconRegistry.addSvgIcon(
'moblab',
this.domSanitizer.bypassSecurityTrustResourceUrl('../assets/moblab.svg')
);
}
ngOnInit() {
console.log('Starting app....');
}
}