I am using angularjs, I have one for loop and I get the loop values into one variable called Name .Now my need is that variable should store into scope array selection . How to achieve this.
code:
$scope.selection = [];
for(var i=0 ;i<$scope.Streams.length;i++)
{
var Name=$scope.Streams[i].Name;
}
here i add the dynamic value of name into scope array.
I need output of my scope variable like this

I need output of my scope variable like this... what does this mean?