mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-11 16:23:09 +00:00
chore(ngDoc): add support for custom @usage metadata
This commit is contained in:
parent
2e3651686c
commit
e05a97c6f5
1 changed files with 10 additions and 6 deletions
|
|
@ -451,12 +451,16 @@ Doc.prototype = {
|
||||||
dom.h('Usage', function() {
|
dom.h('Usage', function() {
|
||||||
dom.h('In HTML Template Binding', function() {
|
dom.h('In HTML Template Binding', function() {
|
||||||
dom.tag('code', function() {
|
dom.tag('code', function() {
|
||||||
dom.text('{{ ');
|
if (self.usage) {
|
||||||
dom.text(self.shortName);
|
dom.text(self.usage);
|
||||||
dom.text('_expression | ');
|
} else {
|
||||||
dom.text(self.shortName);
|
dom.text('{{ ');
|
||||||
self.parameters(dom, ':', true);
|
dom.text(self.shortName);
|
||||||
dom.text(' }}');
|
dom.text('_expression | ');
|
||||||
|
dom.text(self.shortName);
|
||||||
|
self.parameters(dom, ':', true);
|
||||||
|
dom.text(' }}');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue