I have lists each with checkboxes. Selection on checkbox results in 3 different rest calls and the response is bind with HTML of that list. If user clicks on multiple checkboxes really fast then response of latter calls override the response of previous calls.(Previous call is still playing with response and latter call has overridden the previous's call)
Eg- If I check 6 checkboxes really quick, it might be possible that response might not get executed for some of the rest call.
getRequestRecords: function(obj) {
return $http({
url: $serverPath + '/alumCenter/notifications/request/' +obj',
method: "GET"
});
},
$scope.singleSelectSet=function(obj){
myService.getRequestRecords(obj).then(function(response){
$scope.myVar=response;
// do lots of things
});
}
<div ng-repeat="obj in flats track by $index">
<input type="checkbox" class="selectable" ng-click="singleSelectSet(obj)" ng-checked="showChecked($index)" aria-label="{{:: 'common.slideout.aria.slatSelectCheckboxLabel' | i18n }}">
</div>