title: Counting up in ngFor - Angular 2
body: <p>I have a problem counting up the ngFor Loop in Angular 2. Im trying to develop a grid that has 3 columns and a dynamic amount of rows. I would like to loop through my array and add the elements from left to right and every three elements it should jump to the next row. Im using Ionic Framework 2.0.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>   &lt;ion-row *ngFor="#m of movies; #i = index"  (click)="movieTapped(m)"&gt;
          &lt;ion-col width-33&gt;
              &lt;div class="row responsive-md"&gt;
                  &lt;img [src]="m.Poster" width="100%" /&gt;
                  {{m.Title}} &lt;br&gt;
                  Rating:     {{m.imdbRating}}&lt;br&gt;
                  Rated:      {{m.Rated}}&lt;br&gt;
                  Released:   {{m.Year}}&lt;br&gt;
              &lt;/div&gt;
          &lt;/ion-col&gt;
          &lt;ion-col  width-33&gt;
              &lt;div class="row responsive-md"&gt;
                  &lt;img [src]="m.Poster" width="100%" /&gt;
              &lt;/div&gt;
           &lt;/ion-col&gt;
           &lt;ion-col width-33&gt;
              &lt;div class="row responsive-md"&gt;
                  &lt;img [src]="m.Poster" width="100%" /&gt;
              &lt;/div&gt;
           &lt;/ion-col&gt;
    &lt;/ion-row&gt;
  </code></pre>
  
  <p>Hope you can help me out.</p>
  
  <p>Cheers!</p>