Skip to content

Commit 235eb17

Browse files
petebacondarwinmatsko
authored andcommitted
build(aio): improve info-bar template
The "npm module" and "NgModule" are now rendered correctly. Closes angular#16055
1 parent aaa5628 commit 235eb17

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

aio/tools/transforms/templates/includes/_info-bar.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<!-- INFO BAR -->
44
<div class="info-banner api-info-bar">
55
<span class="info-bar-item">
6-
npm package: <a href="#">{$ doc.package $}</a>
6+
npm package: <code>@angular/{$ doc.moduleDoc.id $}</code>
77
</span>
88

9+
{% if doc.ngModule %}
910
<span class="info-bar-item">
10-
NgModule: <a href="#">{$ doc.moduleDoc.name $}</a>
11+
NgModule: {@link {$ doc.ngModule $}}
1112
</span>
13+
{% endif %}
1214

1315
<span class="info-bar-item">
1416
{$ github.githubViewLink(doc, versionInfo) $}

0 commit comments

Comments
 (0)