hello i have my code and the nav bar,header and the bottom tabs disappear when i load the page, how can i make the web page appear in the app within the section this is my code
import { Component } from ‘@angular/core’;
import { IonicPage, NavController, NavParams } from ‘ionic-angular’;
import { InAppBrowser } from ‘@ionic-native/in-app-browser’;
import { OnInit } from ‘@angular/core’;
import { LoadingController } from ‘ionic-angular’;
/**
- Generated class for the MoreNewsPage page.
- See https://ionicframework.com/docs/components/#navigation for more info on
- Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: ‘page-more-news’,
templateUrl: ‘more-news.html’,
})
export class MoreNewsPage implements OnInit {
constructor(public navCtrl: NavController,
public loadingCtrl: LoadingController,
private iab: InAppBrowser,
public navParams: NavParams) {
}
//in-app browser
ngOnInit(){
const browser = this.iab.create('http://nilepost.co.ug/','_self',{location:'no'});
browser.close();
}
ionViewDidLoad() {
let loader = this.loadingCtrl.create({
content: “Please wait…”,
duration: 7000
});
loader.present();
// console.log(‘ionViewDidLoad MoreNewsPage’);
}
}
this is my html file for the code
MoreNewsThank you.