xxxxxxxxxx
import { Component, ChangeDetectorRef, AfterViewInit } from '@angular/core';
@Component({
selector: 'app-your-component',
templateUrl: './your-component.component.html', // here goes your iframe
styleUrls: ['./your-component.component.scss']
})
export class YourComponent implements AfterViewInit {
constructor( private ref: ChangeDetectorRef ) { }
ngAfterViewInit() {
this.ref.detach()
}
}