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
278.4k
when call service result res not accept : Array<any>
Dec 31 2019 8:44 PM
I work with angular 7
I create serice as below
service.ts
getLocationData(ids: Array
) {
let observableBatch = [];
ids.forEach((id) => {
observableBatch.push(
this
.http.get(
'http://192.168.7.45:9200/location/_doc/'
+id)
.map(res => res ));
});
return
Observable.forkJoin(observableBatch);
}
when i call service i get error on definition res as following :
this
.partDetailsService.getLocationData(
this
.LocationIds).subscribe(res : Array => {
}
my problem is res :array give me error as not defined
so how to solve this problem
res not accept to defined as array on compile time
so how to solve this problem
Reply
Answers (
2
)
cannot push markers on map although have latitude and longtu
how to fill locations with colored circles with angular 7 ?