From 1b4289ce769e1c32cde6e5b246c1a176b9ecf491 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 6 Mar 2012 14:16:17 -0800 Subject: fix(docs): add a header for the directive info section --- docs/src/ngdoc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs/src') 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){ -- cgit v1.2.3