diff --git a/src/tabs/docs/demo.html b/src/tabs/docs/demo.html
index a747b1c3e1..b56bbbbc54 100644
--- a/src/tabs/docs/demo.html
+++ b/src/tabs/docs/demo.html
@@ -21,7 +21,7 @@
-
+
Vertical content 1
Vertical content 2
diff --git a/src/tabs/docs/demo.js b/src/tabs/docs/demo.js
index 5df7826cb7..da92adab20 100644
--- a/src/tabs/docs/demo.js
+++ b/src/tabs/docs/demo.js
@@ -9,4 +9,6 @@ var TabsDemoCtrl = function ($scope) {
alert("You've selected the alert tab!");
});
};
+
+ $scope.navType = 'pills';
};
diff --git a/src/tabs/docs/readme.md b/src/tabs/docs/readme.md
index dda14d1ed2..15d77c606e 100644
--- a/src/tabs/docs/readme.md
+++ b/src/tabs/docs/readme.md
@@ -8,6 +8,10 @@ AngularJS version of the tabs directive.
_(Defaults: false)_ :
Whether tabs appear vertically stacked.
+ * `type`
+ _(Defaults: 'tabs')_ :
+ Navigation type. Possible values are 'tabs' and 'pills'.
+
#### `` ####
* `heading` or ``
diff --git a/src/tabs/tabs.js b/src/tabs/tabs.js
index 7b56fd4679..3971e30331 100644
--- a/src/tabs/tabs.js
+++ b/src/tabs/tabs.js
@@ -46,6 +46,7 @@ function TabsetCtrl($scope, $element) {
templateUrl: 'template/tabs/tabset.html',
link: function(scope, element, attrs) {
scope.vertical = angular.isDefined(attrs.vertical) ? scope.$eval(attrs.vertical) : false;
+ scope.type = angular.isDefined(attrs.type) ? scope.$parent.$eval(attrs.type) : 'tabs';
}
};
})
diff --git a/src/tabs/test/tabsSpec.js b/src/tabs/test/tabsSpec.js
index b95c5529bf..df65d806db 100644
--- a/src/tabs/test/tabsSpec.js
+++ b/src/tabs/test/tabsSpec.js
@@ -460,4 +460,19 @@ describe('tabs', function() {
});
});
+ describe('type', function() {
+ beforeEach(inject(function($compile, $rootScope) {
+ scope = $rootScope.$new();
+ scope.navType = 'pills';
+
+ elm = $compile('')(scope);
+ scope.$apply();
+ }));
+
+ it('to show pills', function() {
+ expect(elm.find('ul')).toHaveClass('nav-pills');
+ expect(elm.find('ul')).not.toHaveClass('nav-tabs');
+ });
+ });
+
});
diff --git a/template/tabs/tabset.html b/template/tabs/tabset.html
index 70c4fa84e8..5300eac7e9 100644
--- a/template/tabs/tabset.html
+++ b/template/tabs/tabset.html
@@ -1,6 +1,6 @@