-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.html
More file actions
51 lines (47 loc) · 1.46 KB
/
app.component.html
File metadata and controls
51 lines (47 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div style="text-align:center">
<h1>
Welcome!
</h1>
</div>
<h2 [formGroup]="emailValidationForm" class="ml-3">
<input formControlName="email" >
</h2>
<!-- <ul class="list-group">
<li *ngFor="let post of posts" class="list-group-item">
<button class="btn btn-sm btn-primary" (click)="deletePost(post)">Delete </button>
{{post.title}}
</li>
</ul> -->
<table class="table table-striped">
<thead>
<tr>
<th scope="col">CustomerId</th>
<th scope="col">CustomerFirstName</th>
<th scope="col">CustomerLastName</th>
<th scope="col">CustomerContact</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let post of customerDisplay">
<a scope="row" (click)="getCustomerDetails(post.CustomerId)">{{post.CustomerId}}</a>
<td>{{post.CustomerFirstName}}</td>
<td>{{post.CustomerLastName}}</td>
<td>{{post.CustomerContact}}</td>
</tr>
</tbody>
</table>
<div *ngIf="customerTransactionDetails.length > 0">
<div *ngFor="let customerTransactionDetail of customerTransactionDetails">
{{customerTransactionDetail.AccountId}}
<table class="table table-striped">
<tbody>
<tr *ngFor="let transaction of customerTransactionDetail.Transactions">
<a scope="row" >{{transaction.id}}</a>
<td>{{transaction.Amount}}</td>
<td>{{transaction.Date}}</td>
<td>{{transaction.TransactionCode}}</td>
</tr>
</tbody>
</table>
</div>
</div>