Skip to content

Commit 48757b2

Browse files
author
Your Name
committed
typescript course ongoing
1 parent bdfd120 commit 48757b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

client/src/app/services/courses.service.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ import {CourseDetail} from "../../../../shared/model/course-detail";
88
@Injectable()
99
export class CoursesService {
1010

11-
constructor(private http:Http) { }
11+
constructor(private http:Http) {
12+
13+
14+
}
15+
1216

1317

1418
loadCourseDetail(courseId: number) :Observable<CourseDetail> {
1519

1620
return this.http.get(`/api/courses/${courseId}`)
17-
.map(res => res.json());
18-
21+
.map(res => res.json().payload);
1922
}
2023

2124

0 commit comments

Comments
 (0)