How to tab page refresh in ionic 2?

I have used the tab with multiple pages.I have faced some issue when resize the device.So i am asking
How to tab page refresh in ionic 2?

1 Like

Someone knows if there is a Tabs (ion-tabs) similar method to the Content (ion-content) method resize?

Update

Just did:

@ViewChild(Tabs)
public tabsRef: Tabs;

...

public ngOnInit() {
	this.viewController.didEnter.subscribe(() => {
		let tabsRef = this.tabsRef;
		
		if (tabsRef) {
			let content = tabsRef.getSelected().getActive().getIONContent();

			if (content) {
				content.resize();
			}
		}
	});
}

This solved my problem (although the getIONContent() method is labeled with @private).