2016-04-01 10 views
0

Schlüssel und Wert als Schlüssel und Wert drucken Ich habe json Daten in das unten stehende Formatmöchte ich in AngularJS

{ 
    "Development": 33, 
    "Automation Testing": 25, 
    "Manual Testing": 15, 
    "Reporting": 17, 
    "PM": 10 
} 

und ich will „Entwicklung“ und „33“ auf Ansicht drucken AngularJS mit .wie kann Ich erreiche das?

Antwort

0

Haben Sie dieses anprobieren Sie

<ul ng-repeat="(key, prop) in yourjson_array"> 
    <li>{{key}}{{prop}}</li> 
<ul> 
html
0
<tr ng-repeat="(key, value) in data"> 
    <td> {{key}} </td> <td> {{ value }} </td> 
</tr>