mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
18 lines
419 B
HTML
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 -%}
|