angular-cn/aio/tools/transforms/templates/includes/_annotations.html

16 lines
533 B
HTML

{%- if doc.decorators.length %}
<section class="annotations api-section">
<div class="api-section-header">
<h2>Annotations</h2>
</div>
<div class="annotation api-section-content">
{%- for decorator in doc.decorators %}
<pre class="prettyprint no-bg">
<code>@{$ decorator.name $}{$ params.paramList(decorator.arguments) | indent(10, false) $}</code>
</pre>
{%- if not decorator.notYetDocumented %}{$ decorator.description | marked $}{% endif %}
{% endfor %}
</div>
</section>
{% endif %}