angular/aio/tools/transforms/templates/api/includes/annotations.html
Alex Rickabaugh 9d4842cadb Revert "docs(docs-infra): Remove unused annotation template (#50114)" (#50206)
This reverts commit a1ca162fd6.

This commit causes failures in g3, because `@Annotation` is load-bearing for
tsickle's decorator downleveling transformation.

PR Close #50206
2023-05-08 09:45:35 -07:00

13 lines
463 B
HTML

{%- if doc.decorators.length %}
<section class="annotations">
<h2>Annotations</h2>
{%- for decorator in doc.decorators %}
<code-example language="ts" hideCopy="true" class="no-box api-heading{% if decorator.deprecated %} deprecated-api-item{% endif %}">@{$ decorator.name $}({$ decorator.arguments $})</code-example>
{%- if not decorator.notYetDocumented %}
{$ decorator.description | marked $}
{%- endif %}
{%- endfor %}
</section>
{%- endif -%}