From e05a97c6f5bcef1ae300c7d4181fcf2a34f0aab1 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Thu, 19 Jul 2012 13:51:29 -0700 Subject: chore(ngDoc): add support for custom @usage metadata --- docs/src/ngdoc.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'docs/src') 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(' }}'); + } }); }); -- cgit v1.2.3