Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e05a97c

Browse files
btfordIgorMinar
authored andcommitted
chore(ngDoc): add support for custom @Usage metadata
1 parent 2e36516 commit e05a97c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/src/ngdoc.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -451,12 +451,16 @@ Doc.prototype = {
451451
dom.h('Usage', function() {
452452
dom.h('In HTML Template Binding', function() {
453453
dom.tag('code', function() {
454-
dom.text('{{ ');
455-
dom.text(self.shortName);
456-
dom.text('_expression | ');
457-
dom.text(self.shortName);
458-
self.parameters(dom, ':', true);
459-
dom.text(' }}');
454+
if (self.usage) {
455+
dom.text(self.usage);
456+
} else {
457+
dom.text('{{ ');
458+
dom.text(self.shortName);
459+
dom.text('_expression | ');
460+
dom.text(self.shortName);
461+
self.parameters(dom, ':', true);
462+
dom.text(' }}');
463+
}
460464
});
461465
});
462466

0 commit comments

Comments
 (0)