I am using the below functions to save my form. .ts file
saveScheduleCheckin(addcheckinform: NgForm) {
this.scheduleCheckInService.saveScheduleCheckIn(this.checkin).subscribe(data => {
this.alertService.success('success');
addcheckinform.reset();
},
error => {
this.errorMsg = error.statusText;
});
}
Service file
saveScheduleCheckIn(checkin: Object): Observable<any> {
console.log(checkin);
return this.http.post(`${this.url}`, checkin).pipe(catchError(this.errorHandler));
}
currently, this is working and I console the data. check below image
What is that 'prototype' object (marked blue color)? is it error? this form submission is wrong? please help me