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

12 lines
425 B
HTML

{%- if doc.decorators.length %}
<div class="annotations api-section">
<h2>Annotations</h2>
{%- 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>
{% endif %}