WebView or iFrame in my ionicApp


#1

Hi,
I need to insert a block/div into my ionic page and show a web page. I inserted InAppBrowser but I have two different result:

  1. web browser test: It opens a new browser tabs. The content is not displayed into my div block.
  2. in ionic view (on iphone): nothing appear.

typescript code:
this.iab.create('https://ionicframework.com/', 'mydiv', 'hidden=no,location=yes');

html code:
<div id="myDiv" style="height: 300px; width: 300px; background-color: blueviolet"></div>

Could you please help me?

Thanks in advance
Luca


#2

target: The target in which to load the URL, an optional parameter that defaults to _self. (String)

_self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.
_blank: Opens in the InAppBrowser.
_system: Opens in the system’s web browser.