trying to match value from passed array and loop on the page
.then(function (data) {
vm.outputL = data;
vm.array = [];
for(var i=0; i < vm.outputL.length; i++){
vm.block = false;
if(vm.outputL[i].id < 100){
vm.block = true;
}
vm.array.push(vm.block)
}
}
and html code
<li ng-repeat="item in vm.outputL">
<div>{[item.id]}</div>
<div ng-if="vm.array">something</div>
<li>
how can I match value from vm.block and loop item on the page?