aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/ngdoc.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-06 14:16:17 -0800
committerIgor Minar2012-03-08 11:06:14 -0800
commit1b4289ce769e1c32cde6e5b246c1a176b9ecf491 (patch)
tree85df51817dbddec22977d14ec4304f288f24bad2 /docs/src/ngdoc.js
parentaf21233820ea48a093deb6f3e17fc4971701a741 (diff)
downloadangular.js-1b4289ce769e1c32cde6e5b246c1a176b9ecf491.tar.bz2
fix(docs): add a header for the directive info section
Diffstat (limited to 'docs/src/ngdoc.js')
-rw-r--r--docs/src/ngdoc.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index 4fdfe21d..4ea80bce 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -473,7 +473,12 @@ Doc.prototype = {
if (self.priority !== undefined) {
list.push('This directive executes at priority level ' + self.priority + '.');
}
- dom.ul(list);
+
+ if (list.length) {
+ dom.h('Directive info', function() {
+ dom.ul(list);
+ });
+ }
},
html_usage_overview: function(dom){