/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/cdk/testing/tests/test-sub-component.ts
25 строк
596 B
Kristiyan Kostadinov
refactor(cdk/testing): remove explicit change detection
09 май 2026, 06:37
09 май 2026, 06:37
6bf11ab
Код
Авторство
О чём код?
/** * @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, Input, ViewEncapsulation} from '@angular/core'; @Component({ selector: 'test-sub', template: ` <h2>List of {{title}}</h2> <ul> @for (item of items; track item) { <li>{{item}}</li> } </ul>`, encapsulation: ViewEncapsulation.None, }) export class TestSubComponent { @Input() title = ''; @Input() items: string[] = []; }