title: how do i create a grid of cards with angular material?
body: <p>I am trying to create a grid of three cards per row using ng-repeat. I have a normal array of javascript objects attached to the scope. The code below will create a fresh row for every card.</p>
  
  <pre><code>&lt;div layout="row" ng-repeat='post in posts' layout-fill="" layout-align=""&gt;
  &lt;md-card&gt;
    &lt;md-card-content&gt;
      &lt;h2 class="md-title"&gt;{{post.title}}&lt;/h2&gt;
      &lt;p&gt;
        {{post.summary}}
      &lt;/p&gt;
    &lt;/md-card-content&gt;
    &lt;div class="md-actions" layout="row" layout-align="end center"&gt;
      &lt;md-button&gt;View More&lt;/md-button&gt;
    &lt;/div&gt;
  &lt;/md-card&gt;
  &lt;br&gt;
  </code></pre>
  
  <p></p>
  
  <p><a href="https://i.stack.imgur.com/kI9EE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kI9EE.png" alt="enter image description here"></a></p>
  
  <p>How can I iterate over my array and display the cards in rows of three? I looked at <a href="https://stackoverflow.com/questions/20137496/angular-js-ng-repeat-for-creating-grid">this post</a> and <a href="https://stackoverflow.com/questions/20137496/angular-js-ng-repeat-for-creating-grid">this post</a> but I do not see how they apply to <a href="https://material.angularjs.org/latest/#/" rel="nofollow noreferrer">angular material</a></p>