title: Use ngFor component with different templates
body: <p>I'm new to Angular 4. I made a component to display a dynamic list :</p>
  
  <p>UPDATED CODE WITH CRASH ANSWER :</p>
  
  <p>My list.component.html</p>
  
  <pre><code>&lt;ion-list class="list"&gt;
    &lt;ion-item class="list-item" *ngFor="let decompte of decomptes"&gt;
      &lt;div class="list-item-date"&gt;
          &lt;p class="month" text-wrap&gt;{{decompte.date | limitTo : 6}}&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="list-item-type"&gt;
          &lt;span class="info"&gt;{{decompte.name}}&lt;/span&gt;
          &lt;span class="legend"&gt;{{decompte.actes}}&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class="list-item-price"&gt;
          &lt;span class="info"&gt;{{decompte.price}} €&lt;/span&gt;
          &lt;span class="legend"&gt;{{decompte.tiers}}&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class="list-item-btn"&gt;
          &lt;ion-icon class="icon ion-ios-arrow_right"&gt;&lt;/ion-icon&gt;
      &lt;/div&gt;
    &lt;/ion-item&gt;
  &lt;/ion-list&gt;
  </code></pre>
  
  <p>I call it in a first template, and I need to use it too in another template, but I have to limit to the 3 last items, and don't display all of them.</p>
  
  <p>My template : 
  dashboard.html</p>
  
  <pre><code>&lt;div class="dashboard-decomptes"&gt;
    &lt;list-component limit="3"&gt;&lt;/list-component&gt;
    &lt;button ion-button clear (click)="goToStatements()"&gt;Consulter tous mes décomptes&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the component ts file : </p>
  
  <p>list.component.ts</p>
  
  <pre><code>import { Component } from '@angular/core';
  import { Input } from '@angular/core';
  
  
  @Component({
  
  selector: 'list-component',
  templateUrl: './list.component.html'
  })
  
  export class listComponent {
  
  //Temp fake news
  public decomptes = [{
      date: '12 Janvier',
      name: 'toto',
      price: '122,25',
      tiers: 'tutu',
      actes : "+ 2 actes"
  }, ....]
  
  @Input() limit: number;
  
  }
  </code></pre>
  
  <p>I don't know how to do add the limit in a specific template. If anyone has an idea..
  Thanks by advance !</p>