Take a variable networkAvailable = false;
.
<iframe [hidden]="!networkAvailable"></iframe>
Later in your JavaScript, detect network status using cordova-plugin-network-information and set the networkAvailable
variabel to true
.
This way user won’t see broken contents.