Skip to content

Commit 0b917d5

Browse files
author
Your Name
committed
Angular Material In Depth
1 parent abf01f4 commit 0b917d5

File tree

2 files changed

+101
-81
lines changed

2 files changed

+101
-81
lines changed

server/db-data.ts

Lines changed: 90 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,86 +1083,96 @@ export const LESSONS = {
10831083
videoId: '0Qsg8fyKwO4'
10841084
},
10851085

1086-
// Angular Material In Depth
1087-
1088-
120: {
1089-
id: 120,
1090-
'description': 'Introduction to Angular Material',
1091-
'duration': '4:17',
1092-
'seqNo': 1,
1093-
courseId: 11
1094-
},
1095-
121: {
1096-
id: 121,
1097-
'description': 'Navigation and Containers',
1098-
'duration': '6:37',
1099-
'seqNo': 2,
1100-
courseId: 11
1101-
},
1102-
122: {
1103-
id: 122,
1104-
'description': 'Data Tables',
1105-
'duration': '8:03',
1106-
'seqNo': 3,
1107-
courseId: 11
1108-
},
1109-
123: {
1110-
id: 123,
1111-
'description': 'Dialogs and Overlays',
1112-
'duration': '11:46',
1113-
'seqNo': 4,
1114-
courseId: 11
1115-
},
1116-
124: {
1117-
id: 124,
1118-
'description': 'Commonly used Form Controls',
1119-
'duration': '7:17',
1120-
'seqNo': 5,
1121-
courseId: 11
1122-
},
1123-
125: {
1124-
id: 125,
1125-
'description': 'Drag and Drop',
1126-
'duration': '8:16',
1127-
'seqNo': 6,
1128-
courseId: 11
1129-
},
1130-
126: {
1131-
id: 126,
1132-
'description': 'Responsive Design',
1133-
'duration': '7:28',
1134-
'seqNo': 7,
1135-
courseId: 11
1136-
},
1137-
127: {
1138-
id: 127,
1139-
'description': 'Tree Component',
1140-
'duration': '11:09',
1141-
'seqNo': 8,
1142-
courseId: 11
1143-
},
1144-
128: {
1145-
id: 128,
1146-
'description': 'Virtual Scrolling',
1147-
'duration': '3:44',
1148-
'seqNo': 9,
1149-
courseId: 11
1150-
},
1151-
129: {
1152-
id: 129,
1153-
'description': 'Custom Themes',
1154-
'duration': '8:55',
1155-
'seqNo': 10,
1156-
courseId: 11
1157-
},
1158-
130: {
1159-
id: 130,
1160-
'description': 'Changing Theme at Runtime',
1161-
'duration': '12:37',
1162-
'seqNo': 11,
1163-
courseId: 11
1164-
}
1165-
1086+
// Angular Material In Depth
1087+
1088+
120: {
1089+
id: 120,
1090+
'description': 'Introduction to Angular Material',
1091+
'duration': '4:17',
1092+
'seqNo': 1,
1093+
courseId: 11,
1094+
longDescription: "A quick introduction to the Angular Material library."
1095+
},
1096+
121: {
1097+
id: 121,
1098+
'description': 'Navigation and Containers',
1099+
'duration': '6:37',
1100+
'seqNo': 2,
1101+
courseId: 11,
1102+
longDescription: "Guided tour of navigation elements and container."
1103+
},
1104+
122: {
1105+
id: 122,
1106+
'description': 'Data Tables',
1107+
'duration': '8:03',
1108+
'seqNo': 3,
1109+
courseId: 11,
1110+
longDescription: "Angular Material Data Tables in detail."
1111+
},
1112+
123: {
1113+
id: 123,
1114+
'description': 'Dialogs',
1115+
'duration': '11:46',
1116+
'seqNo': 4,
1117+
courseId: 11,
1118+
longDescription: "Modal elements and how to use them."
1119+
},
1120+
124: {
1121+
id: 124,
1122+
'description': 'Commonly used Form Controls',
1123+
'duration': '7:17',
1124+
'seqNo': 5,
1125+
courseId: 11,
1126+
longDescription: "All sorts of commonly needed form controls."
1127+
},
1128+
125: {
1129+
id: 125,
1130+
'description': 'Drag and Drop',
1131+
'duration': '8:16',
1132+
'seqNo': 6,
1133+
courseId: 11,
1134+
longDescription: "How to use drag and drop."
1135+
},
1136+
126: {
1137+
id: 126,
1138+
'description': 'Responsive Design',
1139+
'duration': '7:28',
1140+
'seqNo': 7,
1141+
courseId: 11,
1142+
longDescription: "Everything about making our screens responsive."
1143+
},
1144+
127: {
1145+
id: 127,
1146+
'description': 'Tree Component',
1147+
'duration': '11:09',
1148+
'seqNo': 8,
1149+
courseId: 11,
1150+
longDescription: "All about the Angular Material Tree component."
1151+
},
1152+
128: {
1153+
id: 128,
1154+
'description': 'Virtual Scrolling',
1155+
'duration': '3:44',
1156+
'seqNo': 9,
1157+
courseId: 11,
1158+
longDescription: "How to use virtual scrolling to handle large amounts of data."
1159+
},
1160+
129: {
1161+
id: 129,
1162+
'description': 'Custom Themes',
1163+
'duration': '8:55',
1164+
'seqNo': 10,
1165+
courseId: 11,
1166+
longDescription: "How to build your own custom Angular Material theme."
1167+
},
1168+
130: {
1169+
id: 130,
1170+
'description': 'Changing Theme at Runtime',
1171+
'duration': '12:37',
1172+
'seqNo': 11,
1173+
courseId: 11,
1174+
longDescription: ""
1175+
}
11661176
};
11671177

11681178

src/app/course/course.component.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h2>{{course?.description}}</h2>
1212

1313
<table mat-table class="lessons-table mat-elevation-z8"
1414
matSort matSortDisableClear matSortActive="seqNo" matSortDirection="asc"
15-
[dataSource]="lessons">
15+
[dataSource]="lessons" multiTemplateDataRows>
1616

1717
<ng-container matColumnDef="seqNo">
1818

@@ -38,10 +38,20 @@ <h2>{{course?.description}}</h2>
3838

3939
</ng-container>
4040

41+
<ng-container matColumnDef="expandedDetail">
42+
43+
<td mat-cell *matCellDef="let lesson" colspan="3">
44+
{{lesson.longDescription}}
45+
</td>
46+
47+
</ng-container>
48+
4149
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
4250

4351
<tr mat-row *matRowDef="let lesson;columns:displayedColumns"></tr>
4452

53+
<tr mat-row *matRowDef="let lesson;columns:['expandedDetail']"></tr>
54+
4555

4656
</table>
4757

0 commit comments

Comments
 (0)