題一
關於這一題我看了很多網站但還是解決不出來,我分別在iT邦幫忙和stackOverflow提問
stackoverflow
iT邦幫忙
,照著他們的解答我依舊無法解決問題十分抱歉
我認為問題點在於我無法將associative array插進第二個table裡面(第一個table可以),我嘗試過使用
*ngFor *ngif並用、
ng-container
但依舊無法,請bass姐賜教
id | name | coord | country | population | |
---|---|---|---|---|---|
lon | lat | ||||
{{item.city.id}} | {{item.city.name}} | {{item.city.coord.lon}} | {{item.city.coord.lat}} | {{item.city.country}} | {{item.city.population}} |
時間 | 溫度 | 壓力 | 濕度 | 天氣 | 風速 | 風向 | 雲量 | rain | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
當天 | 最低溫 | 最高溫 | 晚上 | 下午 | 早上 | ID | main | description | icon | |||||||
{{ l.dt * 1000 | date:'yyyy-MM-dd hh:mm:ss'}} | {{ l.day }} °C | {{item.list_}} °C | {{item.list_ }} °C | {{item.list_ }} °C | {{item.list_ }} °C | {{item.list_ }} °C | {{item.list_}} hpa | {{item.list_}} % | {{item.list_ }} | {{item.list_ }} | {{item.list_ }} | {{item.list_ }} | {{item.list_}} meter/sec | {{item.list_}} ° | {{item.list_}} % | {{item.list_}} |