Skip to content

Commit f6c0bc9

Browse files
author
Your Name
committed
Angular Material In Depth
1 parent e548cba commit f6c0bc9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/app/course/course.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ <h2>{{course?.description}}</h2>
5454

5555
</tr>
5656

57-
<tr mat-row *matRowDef="let lesson;columns:['expandedDetail']"></tr>
57+
<tr mat-row *matRowDef="let lesson;columns:['expandedDetail']"
58+
[class.collapsed-detail]="lesson != expandedLesson">
59+
60+
</tr>
5861

5962

6063
</table>

src/app/course/course.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
margin: 10px auto;
1717
}
1818

19+
.collapsed-detail {
20+
display: none;
21+
}
22+
1923
.duration-cell {
2024
text-align: center;
2125
}

0 commit comments

Comments
 (0)