title: add bootstrap rows during ng-repeat
body: <p>I have a situation where I have a list of data to be displayed in individual panels,  Using Bootstrap's grid system, I'd like to take advantage of a wide screen and display several panels horizontally, but on narrow screens have them stack.  I'm currently laying things out on the server side with ejs like this, with columns being passed in as a query parameter, typically set to 2 or 3, so each colClass is either col-sm-6 or col-sm-4.</p>
  
  <pre><code>&lt;% var colWidth = 12/columns; var colClass = "col-sm-" + colWidth; %&gt;
  &lt;% for(var i=0; i&lt;contestData.classData.length; i++) {%&gt;
      &lt;% if ((classCount % columns) == 0) { %&gt;
          &lt;div class="row"&gt;
      &lt;% } %&gt;
      &lt;div class="&lt;%= colClass %&gt;"&gt;
          &lt;div class="panel panel-primary"&gt;
              &lt;div class="panel-heading"&gt;
                  &lt;h3 class="panel-title"&gt; &lt;%= contestData.classData[i].name %&gt; &lt;/h3&gt;
              &lt;/div&gt;
              &lt;div&gt;...&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;% classCount++ %&gt;
      &lt;% if ((classCount % columns) == 0) { %&gt;
          &lt;/div&gt;
      &lt;% } %&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>This works, but doing this level of layout on the server side offends me, I'd really rather do this with Angular but I can't figure out how to wrap the appropriate number of panels in a div with class=row while doing ng-repeat or even ng-repeat-start="classData in contestData.classData"</p>
  
  <p>Thanks!</p>