File tree Expand file tree Collapse file tree 8 files changed +23
-29
lines changed
flight-search-redux-connector Expand file tree Collapse file tree 8 files changed +23
-29
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,13 @@ import { TodoStore } from './todo-store';
1616 <mat-table [dataSource]="dataSource" class="mat-elevation-z8">
1717 <!-- Checkbox Column -->
1818 <ng-container matColumnDef="finished">
19- <mat-header-cell *matHeaderCellDef></mat-header-cell >
19+ <mat-header-cell *matHeaderCellDef / >
2020 <mat-cell *matCellDef="let row" class="actions">
2121 <mat-checkbox
2222 (click)="$event.stopPropagation()"
2323 (change)="checkboxLabel(row)"
2424 [checked]="row.finished"
25- >
26- </mat-checkbox>
25+ />
2726 <mat-icon (click)="removeTodo(row)">delete</mat-icon>
2827 </mat-cell>
2928 </ng-container>
@@ -44,11 +43,11 @@ import { TodoStore } from './todo-store';
4443 </mat-cell>
4544 </ng-container>
4645
47- <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row >
46+ <mat-header-row *matHeaderRowDef="displayedColumns" / >
4847 <mat-row
4948 *matRowDef="let row; columns: displayedColumns"
5049 (click)="selection.toggle(row)"
51- ></mat-row >
50+ / >
5251 </mat-table>
5352
5453 <div class="details">
Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ <h2 class="title">Flight Search (Redux Connector)</h2>
5858 [item] ="flight "
5959 [selected] ="localState.basket()[flight.id] "
6060 (selectedChange) ="select(flight.id, $event) "
61- >
62- </ demo-flight-card >
61+ />
6362 </ div >
6463 }
6564</ div >
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ <h2 class="title">Flight Search (Pagination)</h2>
4949 }}</ mat-cell >
5050 </ ng-container >
5151
52- < mat-header-row *matHeaderRowDef ="displayedColumns "> </ mat-header-row >
52+ < mat-header-row *matHeaderRowDef ="displayedColumns " / >
5353 < mat-row
5454 *matRowDef ="let row; columns: displayedColumns "
5555 (click) ="selection.toggle(row) "
56- > </ mat-row >
56+ / >
5757</ mat-table >
5858< mat-paginator
5959 [length] ="flightStore.flightTotalCount() "
@@ -63,5 +63,4 @@ <h2 class="title">Flight Search (Pagination)</h2>
6363 [pageSizeOptions] ="[5, 10, 25] "
6464 (page) ="handlePageEvent($event) "
6565 aria-label ="Select page "
66- >
67- </ mat-paginator >
66+ />
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ <h2>Flight Search (<code>withRedux</code>)</h2>
3838 }}</ mat-cell >
3939 </ ng-container >
4040
41- < mat-header-row *matHeaderRowDef ="displayedColumns "> </ mat-header-row >
41+ < mat-header-row *matHeaderRowDef ="displayedColumns " / >
4242 < mat-row
4343 *matRowDef ="let row; columns: displayedColumns "
4444 (click) ="selection.toggle(row) "
45- > </ mat-row >
45+ / >
4646</ mat-table >
Original file line number Diff line number Diff line change @@ -19,14 +19,13 @@ import { TodoStore } from './todo-store';
1919 <mat-table [dataSource]="dataSource" class="mat-elevation-z8">
2020 <!-- Checkbox Column -->
2121 <ng-container matColumnDef="finished">
22- <mat-header-cell *matHeaderCellDef></mat-header-cell >
22+ <mat-header-cell *matHeaderCellDef / >
2323 <mat-cell *matCellDef="let row" class="actions">
2424 <mat-checkbox
2525 (click)="$event.stopPropagation()"
2626 (change)="toggleFinished(row)"
2727 [checked]="row.finished"
28- >
29- </mat-checkbox>
28+ />
3029 </mat-cell>
3130 </ng-container>
3231
@@ -36,11 +35,11 @@ import { TodoStore } from './todo-store';
3635 <mat-cell *matCellDef="let element">{{ element.name }}</mat-cell>
3736 </ng-container>
3837
39- <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row >
38+ <mat-header-row *matHeaderRowDef="displayedColumns" / >
4039 <mat-row
4140 *matRowDef="let row; columns: displayedColumns"
4241 (click)="selection.toggle(row)"
43- ></mat-row >
42+ / >
4443 </mat-table>
4544 </section>
4645 ` ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ <h2 class="title">{{ item().from }} - {{ item().to }}</h2>
1313 @if (selected()) {
1414 < button class ="btn btn-default " (click) ="deselect() "> Remove</ button >
1515 }
16- < ng-content > </ ng-content >
16+ < ng-content / >
1717 </ p >
1818 </ div >
1919</ div >
Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ <h2>StorageType:IndexedDB</h2>
33< mat-table [dataSource] ="dataSource " class ="mat-elevation-z8 ">
44 <!-- Checkbox Column -->
55 < ng-container matColumnDef ="finished ">
6- < mat-header-cell *matHeaderCellDef > </ mat-header-cell >
6+ < mat-header-cell *matHeaderCellDef / >
77 < mat-cell *matCellDef ="let row " class ="actions ">
88 < mat-checkbox
99 (change) ="checkboxLabel(row) "
1010 (click) ="$event.stopPropagation() "
1111 [checked] ="row.finished "
12- >
13- </ mat-checkbox >
12+ />
1413 < mat-icon (click) ="removeTodo(row) "> delete</ mat-icon >
1514 </ mat-cell >
1615 </ ng-container >
@@ -37,9 +36,9 @@ <h2>StorageType:IndexedDB</h2>
3736 </ mat-cell >
3837 </ ng-container >
3938
40- < mat-header-row *matHeaderRowDef ="displayedColumns "> </ mat-header-row >
39+ < mat-header-row *matHeaderRowDef ="displayedColumns " / >
4140 < mat-row
4241 (click) ="selection.toggle(row) "
4342 *matRowDef ="let row; columns: displayedColumns "
44- > </ mat-row >
43+ / >
4544</ mat-table >
Original file line number Diff line number Diff line change @@ -3,14 +3,13 @@ <h2>StorageType:LocalStorage</h2>
33< mat-table [dataSource] ="dataSource " class ="mat-elevation-z8 ">
44 <!-- Checkbox Column -->
55 < ng-container matColumnDef ="finished ">
6- < mat-header-cell *matHeaderCellDef > </ mat-header-cell >
6+ < mat-header-cell *matHeaderCellDef / >
77 < mat-cell *matCellDef ="let row " class ="actions ">
88 < mat-checkbox
99 (change) ="checkboxLabel(row) "
1010 (click) ="$event.stopPropagation() "
1111 [checked] ="row.finished "
12- >
13- </ mat-checkbox >
12+ />
1413 < mat-icon (click) ="removeTodo(row) "> delete</ mat-icon >
1514 </ mat-cell >
1615 </ ng-container >
@@ -37,9 +36,9 @@ <h2>StorageType:LocalStorage</h2>
3736 </ mat-cell >
3837 </ ng-container >
3938
40- < mat-header-row *matHeaderRowDef ="displayedColumns "> </ mat-header-row >
39+ < mat-header-row *matHeaderRowDef ="displayedColumns " / >
4140 < mat-row
4241 (click) ="selection.toggle(row) "
4342 *matRowDef ="let row; columns: displayedColumns "
44- > </ mat-row >
43+ / >
4544</ mat-table >
You can’t perform that action at this time.
0 commit comments