Short description of the problem:
If you start a new ionic project with the tabs-template (includes beta.10), then the video in the iframe won't work anymore
What behavior are you expecting?
Correct behaviour of the iframe.
Steps to reproduce:
- ionic start MyIonic2Project --v2
- place <div class="newsItemContent" [innerHTML]="content"> in the home.html
- place following code in the home.ts
<ion-header>
<ion-navbar>
<ion-title>Home</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding class="home">
<div class="newsItemContent" [innerHTML]="content"></div>
</ion-content>
@Component({
templateUrl: 'build/pages/home/home.html'
}) export class HomePage {
private content:string;
constructor(private navController:NavController) {
this.content = '<iframe class="youtube-player" title="ePQUMgVnTRs" src="https://www.youtube.com/embed/ePQUMgVnTRs?wmode=opaque&modestbranding=1&autohide=1&controls=1&showinfo=0&color=red&vq=hd720" frameborder="0" allowfullscreen>Video van ePQUMgVnTRs</iframe>';
}
}
Which Ionic Version? 2.x
Run ionic info from terminal/cmd prompt: (paste output below)
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.31
Ionic App Lib Version: 2.0.0-beta.17
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v5.3.0
Xcode version: Xcode 7.3.1 Build version 7D1014