fill select widget with for loop
I want to fill the
$scope.view.wdg["select-1"].list
with a for loop.
just like i can do with the following method.
var title = []; for(var i = 0; i < array.length; i++) { title[i] = { name: array[i], value: i+1 }; }
How can I do?

