I am calling for a modal to open with a $uibModal and i want to fill an array with integers from m to n. Because the range between the numbers is very big sometimes, the modal is opening very slow. I need to show inside the select box the values of the array. Any suggestions? this is my code:
vm.arr = [];
while (step > 0 ? max >= min : max <= min) {
vm.arr.push(min);
min += step;
}