Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229110

Get sub page or child page name in tabs page

$
0
0

This should answer your question :blush:

getSelected();
//Returns: Tab
//Returns the currently selected tab

EDIT: Im not sure but:
Do you mean that PAGE B isn’t a Tabpage at all ? And you want to replace the Tabname PAGE A to PAGE B ?

If so you need to pass parameters to Tabs.ts when entering PAGE B and replace the strings.

As quick example how it could look like:

HTML:
<ion-tab [root]="tab1Root" tabTitle="{{TAB1}}" tabIcon="ios-home"></ion-tab>

TS TABS

export class TabPage{
  TAB1 = "PAGE A"; 
  //This string is to replace when you push a parameter.
}

NavParams Doc:


Viewing all articles
Browse latest Browse all 229110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>