Skip to content

Commit da098ff

Browse files
committed
replace description with sku on product list table
1 parent 8011e6a commit da098ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clients/Application/src/app/views/products/list/list.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ <h2>Product List</h2>
1818
</ng-container>
1919

2020
<!-- Description Column -->
21-
<ng-container matColumnDef="description">
22-
<th mat-header-cell *matHeaderCellDef>Description</th>
23-
<td mat-cell *matCellDef="let element">{{ element.description }}</td>
21+
<ng-container matColumnDef="sku">
22+
<th mat-header-cell *matHeaderCellDef>SKU</th>
23+
<td mat-cell *matCellDef="let element">{{ element.sku }}</td>
2424
</ng-container>
2525

2626
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>

clients/Application/src/app/views/products/list/list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ProductService } from '../product.service';
1111
export class ListComponent implements OnInit {
1212
productData: Product[] = [];
1313
isLoading: boolean = true;
14-
displayedColumns: string[] = ['name', 'price', 'description'];
14+
displayedColumns: string[] = ['name', 'price', 'sku'];
1515

1616
constructor(private productSvc: ProductService, private router: Router) {}
1717

0 commit comments

Comments
 (0)