1home.component.html
2..
3<tr *ngFor="let rowName of rowNames()">
4 <th>{{rowName}}</th>
5</tr>
6
7home.component.ts
8....
9public rowNames(): Array<string> {
10 const keys = Object.keys(EventType);
11 return keys.slice(keys.length / 2);
12}
13