我想对 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>
提前致谢。