From d25ccabedea412014a55c47dcb01fc673c93ccf4 Mon Sep 17 00:00:00 2001 From: norami_dream Date: Wed, 20 Apr 2016 18:03:46 +0900 Subject: [PATCH] feat(tab): enable string as index --- src/tabs/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabs/tabs.js b/src/tabs/tabs.js index 81a71050b8..99fce869e3 100644 --- a/src/tabs/tabs.js +++ b/src/tabs/tabs.js @@ -77,7 +77,7 @@ angular.module('ui.bootstrap.tabs', []) }; $scope.$watch('tabset.active', function(val) { - if (angular.isNumber(val) && val !== oldIndex) { + if (val !== oldIndex) { ctrl.select(findTabIndex(val)); } });