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.9k
error Cannot read property ‘split’ of undefined
Dec 30 2019 3:07 AM
I work on angular 7
I get error
ERROR TypeError: Cannot read property
'split'
of undefined
at managelocations.component.ts:120
at Array.forEach ()
at SafeSubscriber._next (managelocations.component.ts:117)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:196)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (Subscriber.js:134)
error come from this line below :
var loc =
this
.dataLocation.split(
','
);
console.log (dataLocation);
print
5.2951916,100.28825170000005
How to solve this problem
Reply
Answers (
2
)
error when create service res.json is not a function
How to store value of latitude and longtude on two variables