aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootstrap/bootstrap.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-04-29 15:20:10 -0400
committerIgor Minar2013-04-29 17:43:14 -0400
commitb3a62b2e19b1743df52034d4d7a0405e6a65f925 (patch)
tree5ba48fb0f0c49e56302e0ddb968d45e1046548c7 /src/bootstrap/bootstrap.js
parent400f9360bb2f7553c5bd3b1f256a5f3db175b7bc (diff)
downloadangular.js-b3a62b2e19b1743df52034d4d7a0405e6a65f925.tar.bz2
feat(ngdocs): support for HTML table generation from docs code
Diffstat (limited to 'src/bootstrap/bootstrap.js')
-rw-r--r--src/bootstrap/bootstrap.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.js b/src/bootstrap/bootstrap.js
index d21ed941..c9719b0c 100644
--- a/src/bootstrap/bootstrap.js
+++ b/src/bootstrap/bootstrap.js
@@ -143,6 +143,14 @@ directive.tabbable = function() {
};
};
+directive.table = function() {
+ return {
+ restrict: 'E',
+ link: function(scope, element, attrs) {
+ element[0].className = 'table table-bordered table-striped code-table';
+ }
+ };
+};
directive.tabPane = function() {
return {