gns3-web-ui/src/app/app.component.ts

21 lines
580 B
TypeScript
Raw Normal View History

2017-09-25 11:07:52 +00:00
import { Component, OnInit } from '@angular/core';
2017-10-31 13:44:47 +00:00
import {Http} from "@angular/http";
import {MatIconRegistry} from "@angular/material";
import {DomSanitizer} from "@angular/platform-browser";
2017-09-25 11:07:52 +00:00
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
2017-10-31 14:45:38 +00:00
styleUrls: [
'./app.component.css'
]
2017-09-25 11:07:52 +00:00
})
export class AppComponent implements OnInit {
constructor(http: Http, iconReg: MatIconRegistry, sanitizer: DomSanitizer) {
2017-11-27 10:55:20 +00:00
iconReg.addSvgIcon('gns3', sanitizer.bypassSecurityTrustResourceUrl('./assets/gns3_icon.svg'));
2017-10-31 13:44:47 +00:00
}
2017-09-25 11:07:52 +00:00
ngOnInit(): void {
}
}