1

Angular 2.0 で以下のオブジェクトに対して ng-for を実行したい

{"apparentTemperature":20.56,"cloudCover":0.05,"dewPoint":8.56,"humidity":0.47,"icon":"wi-forecast-io-clear-night","nearestStormBearing":286,"nearestStormDistance":301,"ozone":296.9,"precipIntensity":0,"precipProbability":0,"pressure":1036.27,"summary":"Clear","temperature":26.08,"time":1449406635,"visibility":8.55,"windBearing":213,"windSpeed":4.59}

Angular 1.x で行っていたのと同じように:

<tr ng-repeat="(key, value) in data">
<td> {{key}} </td> <td> {{ value }} </td>

前もって感謝します。

4

0 に答える 0