Skip to content

Commit 11f4d34

Browse files
committed
fix errors
1 parent 533e5f7 commit 11f4d34

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

src/demo-app/table/custom-table/wrapper-table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {SimpleColumn} from './simple-column';
2121
display: block;
2222
width: 100%;
2323
}
24-
24+
2525
.mat-table {
2626
width: 100%;
2727
}

src/demo-app/table/data-input-table/data-input-table.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
.demo-track-by-label {
1010
margin-right: 8px;
1111
}
12-
}
12+
}

src/demo-app/table/data-input-table/data-input-table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ export class DataInputTableDemo {
103103
}
104104

105105
highlightFirstRow() {
106-
document.querySelector('table tbody tr')!.setAttribute('style', 'background: red')
106+
document.querySelector('table tbody tr')!.setAttribute('style', 'background: red');
107107
}
108108
}

src/demo-app/table/when-rows/when-rows.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<tr cdk-header-row *cdkHeaderRowDef="columns"></tr>
99

10-
<tr cdk-row *cdkRowDef="let row; let isOdd = odd; columns: ['position']; when: isOdd"></tr>
10+
<tr cdk-row *cdkRowDef="let row; let odd = odd; columns: ['position']; when: isOdd"></tr>
1111
<tr cdk-row *cdkRowDef="let row; columns: columns;"></tr>
1212
</table>
1313
</mat-card>

src/demo-app/table/when-rows/when-rows.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ import {Element, ELEMENT_DATA} from 'table/element-data';
1616
export class WhenRowsDemo {
1717
columns = ['name', 'weight', 'symbol', 'position'];
1818
dataSource: Element[] = ELEMENT_DATA.slice();
19+
20+
isOdd = (i: number, _d: Element) => i % 2 !== 0;
1921
}

src/lib/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@
4040
},
4141
"sideEffects": false
4242
}
43+

src/universal-app/kitchen-sink/kitchen-sink.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ <h2>Expansion Panel</h2>
281281

282282
<h2>CDK Table</h2>
283283

284-
<cdk-table #table [dataSource]="matTableDataSource">
284+
<cdk-table #table [dataSource]="tableDataSource">
285285
<ng-container cdkColumnDef="userId">
286286
<cdk-header-cell *cdkHeaderCellDef>ID</cdk-header-cell>
287287
<cdk-cell *cdkCellDef="let row">{{row.userId}}</cdk-cell>
@@ -293,7 +293,7 @@ <h2>CDK Table</h2>
293293

294294
<h2>Material Table</h2>
295295

296-
<mat-table [dataSource]="matTableDataSource">
296+
<mat-table [dataSource]="tableDataSource">
297297
<ng-container cdkColumnDef="userId">
298298
<mat-header-cell *cdkHeaderCellDef>ID</mat-header-cell>
299299
<mat-cell *cdkCellDef="let row"> {{row.userId}} </mat-cell>

0 commit comments

Comments
 (0)