import { Component , Input } from '@angular/core' ; import { RenderResult } from '../../../models/cmdb-render' ; import { DomSanitizer } from '@angular/platform-browser' ; @ Component ( { selector : 'cmdb-object-externals' , templateUrl : './object-externals.component.html' , styleUrls : [ './object-externals.component.scss' ] } ) export class ObjectExternalsComponent { @ Input ( ) renderResult : RenderResult = undefined ; constructor ( private sanitizer ) { } getSantizeUrl ( url ) { return this . sanitizer . bypassSecurityTrustUrl ( url ) ; } }