Skip to content

Commit bb86dee

Browse files
author
Your Name
committed
typescript course ongoing
1 parent 3088bee commit bb86dee

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: client/src/app/app.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export class AppComponent implements OnInit {
1313
}
1414

1515
ngOnInit() {
16-
this.coursesService.loadCourseDetail(1);
16+
this.coursesService.loadCourseDetail(1)
17+
.subscribe(console.log);
1718
}
1819

1920
}

Diff for: client/src/app/app.module.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { AppComponent } from './app.component';
77
import { CourseDetailComponent } from './course-detail/course-detail.component';
88
import {CoursesService} from "./services/courses.service";
99

10+
import 'rxjs/add/operator/map';
11+
1012
@NgModule({
1113
declarations: [
1214
AppComponent,

0 commit comments

Comments
 (0)