diff options
| author | Brian Ford | 2012-07-19 13:51:29 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-08-10 16:33:13 -0700 |
| commit | e05a97c6f5bcef1ae300c7d4181fcf2a34f0aab1 (patch) | |
| tree | 7ee2b52e317d1b5bf9533e1025a593765b9d849d | |
| parent | 2e3651686c2bd84cf464ecc236c8ad77e61179df (diff) | |
| download | angular.js-e05a97c6f5bcef1ae300c7d4181fcf2a34f0aab1.tar.bz2 | |
chore(ngDoc): add support for custom @usage metadata
| -rw-r--r-- | docs/src/ngdoc.js | 16 |
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(' }}'); + } }); }); |
