title: How to loop through array upto only some objects using ngFor in angular 2
body: <p>I'm looping through an array which has 6 objects and using ngFor where I want to loop only up to 4 elements .. How Can I do that??</p>
  
  <pre><code>&lt;div class="item active" *ngFor="#data of lengthArray"&gt;
   content 
  &lt;/div&gt;
  </code></pre>
  
  <p>In LengthArray I have 6 but how to loop up to 4 records only??</p>
  
  <p>and also I want to loop from 4th record to 6th record in another div.. How can I start from 4th record??</p>