Skip to content

Commit a317c00

Browse files
committed
Angular NgRx Course
1 parent 02a990c commit a317c00

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

src/app/courses/courses-card-list/courses-card-list.component.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@
66

77
.course-actions {
88
text-align: center;
9+
10+
}
11+
12+
.course-actions button {
13+
margin-right: 10px;
914
}
1015

src/app/courses/courses-card-list/courses-card-list.component.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@
1616

1717
<mat-card-actions class="course-actions">
1818

19-
<button mat-button class="mat-raised-button mat-primary" [routerLink]="['/courses', course.id]">
20-
VIEW COURSE
19+
<button mat-raised-button color="primary" [routerLink]="['/courses', course.id]">
20+
VIEW
2121
</button>
2222

23-
<button mat-button class="mat-raised-button mat-accent"
24-
(click)="editCourse(course)">
25-
EDIT
26-
</button>
23+
<button mat-mini-fab color="accent">
24+
<mat-icon class="add-course-btn" (click)="editCourse(course)">edit</mat-icon>
25+
</button>
26+
27+
<button mat-mini-fab color="warn">
28+
<mat-icon class="add-course-btn" (click)="onDeleteCourse()">delete</mat-icon>
29+
</button>
2730

2831
</mat-card-actions>
2932

src/app/courses/courses-card-list/courses-card-list.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ export class CoursesCardListComponent implements OnInit {
3535

3636
}
3737

38+
onDeleteCourse() {
39+
40+
41+
42+
}
43+
3844
}
3945

4046

0 commit comments

Comments
 (0)