From ae17e7f98863bf6e225aadf29c003e4623b777e8 Mon Sep 17 00:00:00 2001 From: mhartington Date: Wed, 17 Feb 2016 12:45:23 -0500 Subject: [PATCH] docs(tabs): updated docs --- ionic/components/tabs/tabs.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ionic/components/tabs/tabs.ts b/ionic/components/tabs/tabs.ts index 44de1b01d85..d179dc9a5bf 100644 --- a/ionic/components/tabs/tabs.ts +++ b/ionic/components/tabs/tabs.ts @@ -124,9 +124,14 @@ export class Tabs extends Ion { */ @ViewChildren(TabButton) private _btns; + /** + * @private + */ + parent:any + constructor( @Optional() viewCtrl: ViewController, - @Optional() public parent: NavController, + parent: any, private _app: IonicApp, private _config: Config, private _elementRef: ElementRef, @@ -134,7 +139,7 @@ export class Tabs extends Ion { private _renderer: Renderer ) { super(_elementRef); - + this.parent = parent; this.id = ++tabIds; this.subPages = _config.getBoolean('tabSubPages'); this._useHighlight = _config.getBoolean('tabbarHighlight'); @@ -172,6 +177,9 @@ export class Tabs extends Ion { }); } + /** + * @private + */ ngAfterContentInit() { let selectedIndex = this.selectedIndex ? parseInt(this.selectedIndex, 10) : 0;