aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/src/ngdoc.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index ac6eb5f2..4251465b 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -451,12 +451,16 @@ Doc.prototype = {
dom.h('Usage', function() {
dom.h('In HTML Template Binding', function() {
dom.tag('code', function() {
- dom.text('{{ ');
- dom.text(self.shortName);
- dom.text('_expression | ');
- dom.text(self.shortName);
- self.parameters(dom, ':', true);
- dom.text(' }}');
+ if (self.usage) {
+ dom.text(self.usage);
+ } else {
+ dom.text('{{ ');
+ dom.text(self.shortName);
+ dom.text('_expression | ');
+ dom.text(self.shortName);
+ self.parameters(dom, ':', true);
+ dom.text(' }}');
+ }
});
});