I'm working with Ionic 3, what I'm trying to do is put a web site in an Ionic app.
I have it resolved but in the home.html I have a button which calls a blank page and puts it there, what I need is that when you open the application you can see the web without an intermediary button.
I show the code that I occupy.
Home.html
<ion-header>
<ion-navbar>
<ion-title>
<!-- Ionic Blank -->
</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<button ion-button color="primary" (click)="openLink()">Abrir link</button>
</ion-content>
Home.ts
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { InAppBrowser } from '@ionic-native/in-app-browser';
@Component({
selector: 'page-home',
templateUrl: 'home.html',
// template:"<p>...loading</p>"
})
export class HomePage {
constructor(public navCtrl: NavController, private iap: InAppBrowser) {
}
openLink(){
this.iap.create("https://www.ubikate.net/","_blank");
}
// constructor(private iab: InAppBrowser, public platform: Platform){
// platform.ready().then(()=>{
// let browser = this.iab.create('https://www.ubikate.net/');
// browser.show();
// });
// }
}
How should I modify to achieve what I want?
Greetings!