This might appear to be a duplicate, but it's not. None of the solutions I've tried have worked.
Within my angular module, I have a list:
this.checkedInterviews = []
Followed by a function that does the following:
var interviewModel = {
interviewId: self.pendingInterviews[i].id,
status: self.pendingInterviews[i].status,
location: self.pendingInterviews[i].location,
start: self.pendingInterviews[i].start,
hideCheck: null
};
this.checkedInterviews.push(JSON.stringify(interviewModel));
The error message
Cannot read property 'push' of undefined
is returned. Any insights on what could be causing this issue?