vm.backtypes =[]; vm.types = []; vm.changeEvent = function(ctrl){ if(vm.backtypes.length > 0){ angular.forEach(vm.backtypes, function (x) { if(x.checked){; angular.forEach(ctrl.backOptionSelected, function(s){ if(x.id == s) { vm.types.push(x); //vm.types.shift(); } });//end 2nd foreach }//end if });//end first foreach }//end if vm.types.shift(); console.log(vm.types); }//end changeEvent
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)