fix(docs-infra): display "developer preview" label on class members (#47814)

This commit adds the "developer preview" label for class properties and methods.

PR Close #47814
This commit is contained in:
Andrew Kushnir
2022-10-19 09:55:16 -07:00
committed by Dylan Hunn
parent 38ec1565ad
commit fc07efdd2b
2 changed files with 12 additions and 1 deletions
@@ -89,6 +89,11 @@
{%- else %}{$ method.name $}()
{%- endif -%}
</h3>
{%- if method.developerPreview %}
<label class="api-status-label dev-preview" title="This API is in Developer Preview">
<a href="guide/releases#developer-preview">developer preview</a>
</label>
{% endif %}
{$ github.githubLinks(method, versionInfo) $}
</div>
</th></tr></thead>
@@ -221,6 +226,12 @@
<code class="{% if property.deprecated %} deprecated-api-item{% endif %}">{$ renderMemberSyntax(property) $}</code>
</td>
<td>
{%- if property.developerPreview %}
<label class="api-status-label dev-preview" title="This API is in Developer Preview">
<a href="guide/releases#developer-preview">developer preview</a>
</label>
{% endif %}
{%- if (property.isGetAccessor or property.isReadonly) and not property.isSetAccessor %}
<span class='read-only-property'>Read-Only</span>{% endif %}
@@ -322,7 +322,7 @@ export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
private _disableOptimizedSrcset = false;
/**
* Sets the image to "fill mode," which eliminates the height/width requirement and adds
* Sets the image to "fill mode", which eliminates the height/width requirement and adds
* styles such that the image fills its containing element.
*
* @developerPreview