title: How can I list by keys and values in angularjs?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10954286/angularjs-how-can-i-reference-the-property-name-within-an-ng-repeat">AngularJS - How can I reference the property name within an ng-Repeat</a>  </p>
  </blockquote>
  
  
  
  <p>I have a JSON file like that:</p>
  
  <pre><code>fields: {
      alias: {
          type: "string",
      },
      name: {
          type: "string",
      }
  }
  </code></pre>
  
  <p>I want something like that:</p>
  
  <pre><code>&lt;dl ng-repeat="for field in fields.items"&gt;
      &lt;dt&gt;
          {{ field.key }}
      &lt;/dt&gt;
      &lt;dd&gt;
          {{ field.value }}
      &lt;/dd&gt;
  &lt;/dl&gt;
  </code></pre>
  
  <p>thanks in advance!</p>