I have used two pages in ion-menu. In that pages i have used the tabbar.ionViewLoaded and ionViewDidEnter are trigger only initial page content loaded.
On second page,trigger it before the content loaded.
I need to procees something after content loaded
How to resolve this?
Could you try to share some code? Kind of hard to help without seeing a clearer picture.
ion-menu code
tabs.ts
import {Component} from ‘@angular/core’;
import {HomePage} from ‘…/home/home’;
import {AboutPage} from ‘…/about/about’;
import {ContactPage} from ‘…/contact/contact’;
@Component({
templateUrl: ‘build/pages/tabs/tabs.html’
})
export class TabsPage {
private tab1Root: any;
private tab2Root: any;
private tab3Root: any;
constructor() {
// this tells the tabs component which Pages
// should be each tab’s root Page
this.tab1Root = HomePage;
this.tab2Root = AboutPage;
this.tab3Root = ContactPage;
}
}
Home.ts
import {Component} from ‘@angular/core’;
import {NavController} from ‘ionic-angular’;
@Component({
templateUrl: ‘build/pages/home/home.html’
})
export class HomePage {
constructor(private navCtrl: NavController) {
}
ionViewLoaded(){
debugger
}
}
If i will render the custom component in home page.ionViewLoaded method is calling before custom component rendering.