/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/src/app/features/docs/docs.component.ts
28 строк
865 B
Matthieu Riegler
docs(docs-infra): remove explicit OnPush
25 мар 2026, 22:58
25 мар 2026, 22:58
1938054
Код
Авторство
О чём код?
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, computed, input} from '@angular/core'; import {DocContent, DocViewer} from '@angular/docs'; @Component({ selector: 'docs-docs', imports: [DocViewer], styleUrls: ['./docs.component.scss'], templateUrl: './docs.component.html', host: { '[class.overview]': 'isOverview()', }, }) export default class DocsComponent { // Based on current route, proper static content for doc page is fetched. // In case when exists example-viewer placeholders, then ExampleViewer // components are going to be rendered. docContent = input<DocContent>(); isOverview = computed(() => this.docContent()?.id.includes('what-is-angular')); }