title: How can I use ng-repeat to iterate over an array's objects attributes?
body: <p>I got an array with objects similar to:</p>
  
  <pre><code>{
      _id:       "0",
      category: "ptr",
      price:    14.5
  }
  </code></pre>
  
  <p>So I'm printing an <strong>HTML table</strong> this way:</p>
  
  <pre><code>&lt;tr ng-repeat="product in products.categoryQuery"&gt;
      &lt;td&gt;{{product._id}}&lt;/td&gt;
      &lt;td&gt;{{product.category}}&lt;/td&gt;
      &lt;td&gt;{{product.price}}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Being <code>queryCategory</code> an array with my objects. I wonder if I can reduce the HTML and add an <strong><code>ng-repeat</code></strong> <strong>directive</strong> at a <code>&lt;td&gt;</code> for iterating over object's attributes.</p>
  
  <p>I tried:</p>
  
  <pre><code>&lt;td ng-repeat"p for p in product"&gt;{{p}}&lt;/td&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;td ng-repeat"p for p in product"&gt;{{product[p]}}&lt;/td&gt;
  </code></pre>
  
  <p>But got not results. How could I achieve it?</p>
  
  <h2>Edit.</h2>
  
  <p>As critics suggest, there's this alternative when it's got <strong>one single object</strong>:</p>
  
  <pre><code>&lt;tr ng-repeat="(key, value) in data"&gt;
    &lt;td&gt; {{key}} &lt;/td&gt; &lt;td&gt; {{ value }} &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>But how can I use it when they're several objects from an array?</p>