/
qwiklly
/
arc-server
Обзор
Документация
Войти
/
qwiklly
/
arc-server
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/src/app/fetch-data/fetch-data.component.html
24 строки
744 B
Ksenia
feat: add ngx-translate
18 сен 2022, 20:48
18 сен 2022, 20:48
95f517c
Код
Авторство
О чём код?
<h1 id="tableLabel">{{'Weather forecast' | translate }}</h1> <p>{{'This component demonstrates fetching data from the server.' | translate }}</p> <p *ngIf="!forecasts"><em>{{'Loading...' | translate}}</em></p> <table class='table table-striped' aria-labelledby="tableLabel" *ngIf="forecasts"> <thead> <tr> <th>{{'Date' | translate}}</th> <th>{{'Temp. (C)' | translate}}</th> <th>{{'Temp. (F)' | translate}}</th> <th>{{'Summary' | translate}}</th> </tr> </thead> <tbody> <tr *ngFor="let forecast of forecasts"> <td>{{ forecast.date }}</td> <td>{{ forecast.temperatureC }}</td> <td>{{ forecast.temperatureF }}</td> <td>{{ forecast.summary }}</td> </tr> </tbody> </table>