I have a for loop in my MVC application like this
for(var i = 0; i < data.length; i +=2){
<div class='@(i== 0? "item active": "item")'>
<div>
@Html.Raw(data[i].Description)
</div>
<div>
@Html.Raw(data[i + 1].Description)
</div>
</div>
}
I want to convert the above code in angularjs.
Means every loop render the record from current and next array index, say i = 0 then render first and second record detail.
Actually it is big object, for clarity I reduce the code, I want to write the same code in ng-repeat