mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Working angular tabs!
This commit is contained in:
@ -94,13 +94,11 @@ TabBarController.prototype = {
|
||||
addController: function(controller) {
|
||||
this.controllers.push(controller);
|
||||
|
||||
var item = TabBarItem.prototype.create({
|
||||
this.tabBar.addItem({
|
||||
title: controller.title,
|
||||
icon: controller.icon
|
||||
});
|
||||
|
||||
this.tabBar.addItem(item);
|
||||
|
||||
// If we don't have a selected controller yet, select the first one.
|
||||
if(!this.selectedController) {
|
||||
this.setSelectedController(0);
|
||||
|
||||
Reference in New Issue
Block a user