TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
275.5k
How to get values related to every loc inside location objec
Dec 29 2019 6:31 AM
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 i need to return is :
result returned
2937
27746
27739
27789
I need to store all values related to loc to array locations
2937
27746
27739
27789
to access first item
this
.LocationId=
this
.data.Locations[0][
'Loc'
];
but what actually need store all values on array related to loc inside locations array?
How to do that please
Reply
Answers (
2
)
map display empty although i assign values to lat and lng ?
How to get gps1(lat,lng) values for group of locationId ?