Skip to content

Commit 294a125

Browse files
authored
Merge pull request aws-samples#36 from suhussai/minor-angular-ui-fixes
Minor angular UI fixes
2 parents 8011e6a + cc68f1f commit 294a125

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h2>Order List</h2>
77
<ng-container matColumnDef="name">
88
<th mat-header-cell *matHeaderCellDef>Name</th>
99
<td mat-cell *matCellDef="let element">
10-
<a class="link" routerLink="/orders/detail/{{ element.key }}">
10+
<a class="link" routerLink="/orders/detail/{{ element.orderId }}">
1111
{{ element.orderName }}
1212
</a>
1313
</td>

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)