Skip to content

Commit 2977e73

Browse files
author
Your Name
committed
Angular Core Deep Dive
1 parent b4189ac commit 2977e73

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

src/app/app.component.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
</div>
77

88

9-
10-
11-
129
<div class="courses">
1310

1411
<course-card
15-
*ngFor="let course of courses;index as i;"
16-
12+
*ngFor="let course of courses | slice:0:2 ;index as i;"
1713
(courseSelected)="onCourseSelected($event)"
18-
[course]="course" [cardIndex]="i + 1"></course-card>
14+
[course]="course" [cardIndex]="i + 1">
15+
16+
</course-card>
1917

2018
</div>
2119

src/app/app.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ export class AppComponent {
1111

1212
courses = COURSES;
1313

14+
title = COURSES[0].description;
15+
16+
price = 9.992423424242;
17+
18+
rate = 0.67;
19+
20+
course = COURSES[0];
21+
22+
startDate = new Date(2000, 0, 1);
23+
1424
onCourseSelected(course:Course) {
1525

1626
console.log("App component", course);

src/db-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const COURSES: any = [
44

55
{
66
id: 1,
7-
description: "Angular Core Deep Dive",
7+
description: "Angular core deep dive",
88
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/angular-core-in-depth-small.png',
99
longDescription: "A detailed walk-through of the most important part of Angular - the Core and Common modules",
1010
lessonsCount: 10

0 commit comments

Comments
 (0)