title: Angular2 template: how to wrap contents of ngFor with DIV
body: <p>I have uncertain count of columns and undefined length of fields. To display them there is this code:</p>
  
  <pre><code>&lt;div class="col-md-6" *ngFor="let d of fields"&gt;
      &lt;div class="form-group"&gt;
          &lt;label&gt;{{ d.displayName }}&lt;/label&gt;
          &lt;span&gt;{{ viewRecord[d.fieldName]}}&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div
  </code></pre>
  
  <p>The result is :</p>
  
  <pre><code>&lt;div class="col-md-6"&gt;
      &lt;div class="form-group"&gt;
          &lt;label&gt;Title 1&lt;/label&gt;
          &lt;span&gt;Text 1....&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div
  &lt;div class="col-md-6"&gt;
      &lt;div class="form-group"&gt;
          &lt;label&gt;Title 2&lt;/label&gt;
          &lt;span&gt;Text 2....&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div
  </code></pre>
  
  <p>Is there any possibility to put these two into one container like this:</p>
  
  <pre><code>&lt;div class="row"&gt;
     &lt;div class="col-md-6"&gt;
          &lt;div class="form-group"&gt;
              &lt;label&gt;Title 1&lt;/label&gt;
              &lt;span&gt;Text 1....&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div
      &lt;div class="col-md-6"&gt;
          &lt;div class="form-group"&gt;
              &lt;label&gt;Title 2&lt;/label&gt;
              &lt;span&gt;Text 2....&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div
  &lt;/div&gt;
  </code></pre>
  
  <p>Please notice that I don't know count of fields, so I have to make modulus of 2 from total count of fields to wrap pair of fields into one container. It's obvious that wrapper will be outside of the cycle. I'm stuck :)</p>
  
  <p>Note that <strong>I'm looking for template-driven answer</strong>. If there's not any, I can cope with it. Any JavaScript I can write myself ;)</p>