I have the following component
@Component({
    selector: 'app-models-sd-htmlview',
    styleUrls: ['./sd.component.scss'],
    template: `
        <iframe id="htmlview" style="width:100%; height:200%;" [src]="iframe"></iframe>
    `
})
export class HtmlViewComponent implements OnInit {
    @Input() urlhash;
    @Input() predictiontag;
    public iframe;
    constructor(public sanitizer: DomSanitizer)
    {
        this.sanitizer = sanitizer;
    };
    ngOnInit()
    {
        var url = "http://localhost:8080/htmlview/" + this.urlhash + "/" + this.predictiontag + ".html";
        this.iframe = this.sanitizer.bypassSecurityTrustResourceUrl(url);
    }
}
<app-models-sd-htmlview [urlhash]="urlhash" [predictiontag]="predictiontag"></app-models-sd-htmlview>
But when I render everything, this is what I see. The values for this.urlhash and this.predictiontag are undefined.

 
     
    