/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/src/app/pages/component-viewer/component-api.html
27 строк
1002 B
Shuaib Hasan Akib
docs: migrate selectors to self-closing tags to align with Angular style (#31811)
15 сен 2025, 10:23
Не верифицирован
15 сен 2025, 10:23
54280da
Код
Авторство
О чём код?
@if (componentViewer.componentDocItem | async; as docItem) { <span class="cdk-visually-hidden" tabindex="-1"> API for {{docItem.id}} </span> <!-- This container is necessary for the layout to display properly. When a component has multiple API docs, they need to be joined together in the same container so that they display one after another. --> <div class="docs-component-api"> <doc-viewer [document]="getApiDocumentUrl(docItem)" class="docs-component-view-text-content" (contentRendered)="updateTableOfContents(docItem.name, $event)" /> @for (additionalApiDoc of docItem.additionalApiDocs; track additionalApiDoc) { <doc-viewer document="/docs-content/api-docs/{{additionalApiDoc.path}}" class="docs-component-view-text-content" (contentRendered)="updateTableOfContents(additionalApiDoc.name, $event, $index + 1)"/> } </div> @if (showToc | async) { <table-of-contents #toc container=".mat-drawer-content"/> } }