Skip to content

Commit ab00738

Browse files
author
Your Name
committed
typescript course ongoing
1 parent 3e65095 commit ab00738

6 files changed

+63
-4
lines changed

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

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
<h1>
2-
{{title}}
3-
</h1>
1+
2+
<main class="l-main l-sample-app">
3+
4+
<div>
5+
6+
<div class="main-container">
7+
<div class="list">
8+
<course-detail></course-detail>
9+
</div>
10+
</div>
11+
12+
</div>
13+
14+
</main>

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';
55

66
import { AppComponent } from './app.component';
7+
import { CourseDetailComponent } from './course-detail/course-detail.component';
78

89
@NgModule({
910
declarations: [
10-
AppComponent
11+
AppComponent,
12+
CourseDetailComponent
1113
],
1214
imports: [
1315
BrowserModule,

Diff for: client/src/app/course-detail/course-detail.component.css

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
course-detail works!
3+
</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* tslint:disable:no-unused-variable */
2+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3+
import { By } from '@angular/platform-browser';
4+
import { DebugElement } from '@angular/core';
5+
6+
import { CourseDetailComponent } from './course-detail.component';
7+
8+
describe('CourseDetailComponent', () => {
9+
let component: CourseDetailComponent;
10+
let fixture: ComponentFixture<CourseDetailComponent>;
11+
12+
beforeEach(async(() => {
13+
TestBed.configureTestingModule({
14+
declarations: [ CourseDetailComponent ]
15+
})
16+
.compileComponents();
17+
}));
18+
19+
beforeEach(() => {
20+
fixture = TestBed.createComponent(CourseDetailComponent);
21+
component = fixture.componentInstance;
22+
fixture.detectChanges();
23+
});
24+
25+
it('should create', () => {
26+
expect(component).toBeTruthy();
27+
});
28+
});
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'course-detail',
5+
templateUrl: './course-detail.component.html',
6+
styleUrls: ['./course-detail.component.css']
7+
})
8+
export class CourseDetailComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

0 commit comments

Comments
 (0)