I have a problem with my AngularJS 2 app (I am using RC5 version of AngularJS 2). It seems that a sanitized URL is triggering change detection which then updates the div>
div>
@ViewChild('ytplayer', null) ytPlayer: ElementRef; ngOnInit() { this.ytPlayer.nativeElement.src = this.act.iframe; }
Reloading happens because of using sanitizer.bypassSecurityTrustResourceUrl. So we should not use it. I think it is more comfortable. Thanks.