Skip to content

Commit

Permalink
docs(tabs): updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Feb 17, 2016
1 parent b752432 commit ae17e7f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ionic/components/tabs/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,22 @@ 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,
private _platform: Platform,
private _renderer: Renderer
) {
super(_elementRef);

this.parent = parent;
this.id = ++tabIds;
this.subPages = _config.getBoolean('tabSubPages');
this._useHighlight = _config.getBoolean('tabbarHighlight');
Expand Down Expand Up @@ -172,6 +177,9 @@ export class Tabs extends Ion {
});
}

/**
* @private
*/
ngAfterContentInit() {
let selectedIndex = this.selectedIndex ? parseInt(this.selectedIndex, 10) : 0;

Expand Down

0 comments on commit ae17e7f

Please sign in to comment.