angular/aio/tools/transforms/templates/api/lib/ngmodule.html
Matthieu Riegler 33acf4f6ea docs(docs-infra): fix rendering of Exported from section on Firefox. (#51116)
On Firefox when an `a` element contains a `block` element, the `a` element is not aligned with the `li` marker.

Fixes #51112

PR Close #51116
2023-07-20 19:58:11 +00:00

18 lines
419 B
HTML

{%- macro ngModuleList(ngModules, heading) -%}
{%- if ngModules and ngModules.length > 0 %}
<h2>{$ heading $}</h2>
<ul>
{%- for ngModule in ngModules %}
<li>
{%- if ngModule.path %}
<a href="{$ ngModule.path $}">
<code>{$ ngModule.name | escape $}</code>
</a>
{%- else %}
<code>'{$ ngModule | escape $}'</code>
{%- endif %}
</li>
{%- endfor %}
</ul>
{%- endif -%}
{%- endmacro -%}