fix(docs-infra): add deprecated-api-item class to remaining deprecated items (#34192)

Fixes #31455

PR Close #34192
This commit is contained in:
ajitsinghkaler
2019-12-04 06:27:41 +05:30
committed by Andrew Kushnir
parent 28ef1af376
commit c0869ecfb3
7 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{% macro renderSyntax(container, prefix) -%}
{% for name in container.names %}
<code-example hideCopy="true" class="no-box api-heading no-auto-link">ng {%if prefix %}{$ prefix $} {% endif %}<span class="cli-name">{$ name $}</span>
<code-example hideCopy="true" class="no-box api-heading no-auto-link{% if container.deprecated %} deprecated-api-item{% endif %}">ng {%if prefix %}{$ prefix $} {% endif %}<span class="cli-name">{$ name $}</span>
{%- for arg in container.positionalOptions %} &lt;<var>{$ arg.name $}</var>&gt;{% endfor %}
{%- if container.namedOptions.length %} [<var>options</var>]{% endif -%}
</code-example>