Hi!
I'm a beginner in Angular, and haven't really found anything for this, so if you can help me...please.
Here's an array
firstarray[] = [{id:1,name:abc},{id:2,name:cba},{id:3,name:asd}]
What I'd like to do is:
First: I have an index, for example indexNum = 1;
Then I want a new array with firstarray's index items, the index is 1, so these would be id:2 and name:cba.
indexItems[] = {2,cba}
Secondly:
I want to make two new arrays from the firstarray one stores only the ids and the other stores only the names.
id_array[] = {1,2,3}
name_array[] = {abc,cba,asd}