angular-cn/aio/tools/transforms/templates/api/includes/annotations.html

10 lines
454 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 %}