I work on angular 7
I need to loop over location and get all loc values from locations array
- Locations":
- [{"Loc":2937,"Fab":"Assembly"},
- {"Loc":27746,"Fab":"FAB"},{"Loc":27751,"Fab":"Assembly"},
- {"Loc":2931,"Fab":"Assembly"},{"Loc":27801,"Fab":"FAB"},
- {"Loc":27739,"Fab":"Assembly"},{"Loc":27775,"Fab":"FAB"},
- {"Loc":27789,"Fab":"FAB"}]
- result returned
- 2937
- 27746
- 27739
- 27789
2937
27746
27739
27789
to access first item
- this.LocationId= this.data.Locations[0]['Loc'];
How to do that please


Veerendra AnnigereRank #927 · 2.2K reputationPosted Dec 29, 2019, 2:56 AM EST