build(aio): improve info-bar template

The "npm module" and "NgModule" are now rendered correctly.

Closes #16055
This commit is contained in:
Peter Bacon Darwin 2017-04-30 21:12:52 +01:00 committed by Matias Niemelä
parent aaa562898f
commit 235eb17cca
1 changed files with 4 additions and 2 deletions

View File

@ -3,12 +3,14 @@
<!-- INFO BAR -->
<div class="info-banner api-info-bar">
<span class="info-bar-item">
npm package: <a href="#">{$ doc.package $}</a>
npm package: <code>@angular/{$ doc.moduleDoc.id $}</code>
</span>
{% if doc.ngModule %}
<span class="info-bar-item">
NgModule: <a href="#">{$ doc.moduleDoc.name $}</a>
NgModule: {@link {$ doc.ngModule $}}
</span>
{% endif %}
<span class="info-bar-item">
{$ github.githubViewLink(doc, versionInfo) $}