aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorMisko Hevery2012-02-22 12:59:23 -0800
committerMisko Hevery2012-02-22 12:59:23 -0800
commitc27a56f4da9bf89e471ac6597c135e2f19814f17 (patch)
tree195faba53e34785e05d9685765880956ed9464f4 /docs/src
parentfbcb7fdd141c277d326dc3ed34545210c4d5628f (diff)
downloadangular.js-c27a56f4da9bf89e471ac6597c135e2f19814f17.tar.bz2
docs(scope): show which directives create scopes
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/ngdoc.js17
1 files changed, 16 insertions, 1 deletions
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.element + '>');
});
+ 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);
},