My code is throwing an error message while I'm debugging: Error: Uncaught (in promise): TypeError: Unable to get property 'standard' of undefined or null reference Here is the relevant part of my code: student.component.ts:
this._studentService.get(Global.BASE_USER_ENDPOINT + '/StudentDetailsApi?user_id=' + StudID)
.do(data => JSON.stringify(data))
.subscribe(students=> { this.students= students; this.indLoading = false; },
error => this.msg = <any>error);
And student.component.html:
<span>{{student.standard}}</span>