/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/src/app/shared/example-viewer/code-snippet.ts
21 строка
619 B
Kristiyan Kostadinov
build: add explicit change detection to docs site
31 мар 2026, 20:14
31 мар 2026, 20:14
b35a52a
Код
Авторство
О чём код?
/** * @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, forwardRef, input, viewChild} from '@angular/core'; import {DocViewer} from '../doc-viewer/doc-viewer'; @Component({ selector: 'code-snippet', templateUrl: './code-snippet.html', styleUrls: ['./example-viewer.scss'], imports: [forwardRef(() => DocViewer)], }) export class CodeSnippet { readonly source = input<string>(); readonly viewer = viewChild.required<DocViewer>('viewer'); }