generated from hoangtranson/angular-jest-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.component.html
37 lines (34 loc) · 944 Bytes
/
app.component.html
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
<!--The content below is only a placeholder and can be replaced.-->
<table>
<tr>
<th>Name</th>
<th>Admin</th>
</tr>
<tr *ngFor="let entity of entities; index as index">
<td>
<app-editable (update)="updateField(index, 'name')">
<ng-template appViewMode>{{entity.name}}</ng-template>
<ng-template appEditMode>
<input [formControl]="getControl(index, 'name')">
</ng-template>
</app-editable>
</td>
<td>
<app-editable (update)="updateField(index, 'isAdmin')">
<ng-template appViewMode>{{entity.isAdmin}}</ng-template>
<ng-template appEditMode>
<input type="checkbox" [formControl]="getControl(index, 'isAdmin')">{{entity.isAdmin}}
</ng-template>
</app-editable>
</td>
</tr>
</table>
<br>
<code>
{{entities | json }}
</code>
<br>
<br>
<br>
<code>{{controls.value | json }}</code>
<!-- <router-outlet></router-outlet> -->