mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Updating tests, fixing some old toggle and tab stuff
This commit is contained in:
@ -92,11 +92,16 @@ ionic.controllers.TabBarController.prototype = {
|
||||
return this.controllers;
|
||||
},
|
||||
|
||||
// Get the currently selected tab
|
||||
// Get the currently selected controller
|
||||
getSelectedController: function() {
|
||||
return this.selectedController;
|
||||
},
|
||||
|
||||
// Get the index of the currently selected controller
|
||||
getSelectedControllerIndex: function() {
|
||||
return this.selectedIndex;
|
||||
},
|
||||
|
||||
// Add a tab
|
||||
addController: function(controller) {
|
||||
this.controllers.push(controller);
|
||||
|
||||
Reference in New Issue
Block a user