I iterate over an array with 6 objects and use ngFor, where I want the loop to be only up to 4 elements. How to do it?
<div class="item active" *ngFor="#data of lengthArray"> content </div>
In LengthArray I have 6, but how to loop up to 4 records only
and also I want the loop from the 4th record to the 6th record in another div .. How can I start from the 4th record ??
source share