|
|
@@ -25,7 +25,7 @@ export class TeacherService {
|
|
|
const id = typeof teacher === 'number' ? teacher : teacher.id;
|
|
|
const url = `${this.teachersUrl}/${id}`;
|
|
|
return this.http.delete<Teacher>(url, httpOptions).pipe(
|
|
|
- tap(_ => alert(`Successfully deleted teacher with id=${id}`)),
|
|
|
+ tap(_ => console.log(`TeacherService: deleted student id=${id}`)),
|
|
|
catchError(this.handleError<Teacher>('deleteStudent', 'Error while deleting student'))
|
|
|
);
|
|
|
}
|