/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
modules/ssr-benchmarks/src/app/app.component.ts
31 строка
667 B
Matthieu Riegler
ci: reformat files
17 дек 2025, 01:44
17 дек 2025, 01:44
6270bba
Код
Авторство
О чём код?
/** * @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} from '@angular/core'; import {testData} from '../../test-data'; @Component({ selector: 'app-root', standalone: true, template: ` <table> <tbody> @for (entry of data; track $index) { <tr (click)="onClick()"> <td>{{ entry.id }}</td> <td>{{ entry.name }}</td> </tr> } </tbody> </table> `, }) export class AppComponent { data = testData(); onClick() {} }