From c27a56f4da9bf89e471ac6597c135e2f19814f17 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 22 Feb 2012 12:59:23 -0800 Subject: docs(scope): show which directives create scopes --- docs/src/ngdoc.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'docs/src') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 87f9ab62..fc606d54 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -374,6 +374,7 @@ Doc.prototype = { dom.text('>\n ...\n'); dom.text(''); }); + self.html_usage_directiveInfo(dom); self.html_usage_parameters(dom); }); }, @@ -461,11 +462,25 @@ Doc.prototype = { }); }); + self.html_usage_directiveInfo(dom); self.html_usage_parameters(dom); - self.html_usage_returns(dom); }); }, + html_usage_directiveInfo: function(dom) { + var self = this; + var list = []; + + + if (self.scope !== undefined) { + list.push('This directive creates new scope.'); + } + if (self.priority !== undefined) { + list.push('This directive executes at priority level ' + self.priority + '.'); + } + dom.ul(list); + }, + html_usage_overview: function(dom){ dom.html(this.description); }, -- cgit v1.2.3