I have to include a external webpage in my app, so I use an iframe for this. Now I want to show an loading animation, while the iframe is loading. That works fine, but I don't know, how to dismiss the animation, when the iframe is ready. I can't edit the code of the page in the iframe.
That's my code on the TypeScript-File:
ngOnInit() {
this.presentLoading();
}
presentLoading() {
let loading = this.loadingCtrl.create({
content: 'Please wait...'
});
loading.present();
}
and the HTML file
<ion-content>
<iframe name="chatFrame" src="http://..."></iframe>
</ion-content>