Last change
on this file since 42e2397 was 822c59d, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
616 bytes
|
Rev | Line | |
---|
[822c59d] | 1 | <h1 id="tableLabel">Weather forecast</h1>
|
---|
| 2 |
|
---|
| 3 | <p>This component demonstrates fetching data from the server.</p>
|
---|
| 4 |
|
---|
| 5 | <p *ngIf="!forecasts"><em>Loading...</em></p>
|
---|
| 6 |
|
---|
| 7 | <table class='table table-striped' aria-labelledby="tableLabel" *ngIf="forecasts">
|
---|
| 8 | <thead>
|
---|
| 9 | <tr>
|
---|
| 10 | <th>Date</th>
|
---|
| 11 | <th>Temp. (C)</th>
|
---|
| 12 | <th>Temp. (F)</th>
|
---|
| 13 | <th>Summary</th>
|
---|
| 14 | </tr>
|
---|
| 15 | </thead>
|
---|
| 16 | <tbody>
|
---|
| 17 | <tr *ngFor="let forecast of forecasts">
|
---|
| 18 | <td>{{ forecast.date }}</td>
|
---|
| 19 | <td>{{ forecast.temperatureC }}</td>
|
---|
| 20 | <td>{{ forecast.temperatureF }}</td>
|
---|
| 21 | <td>{{ forecast.summary }}</td>
|
---|
| 22 | </tr>
|
---|
| 23 | </tbody>
|
---|
| 24 | </table>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.