iterate over enum angular ngfor

JavaScript
home.component.html
.. 
<tr *ngFor="let rowName of rowNames()">
  <th>{{rowName}}</th>
</tr>

home.component.ts
....
public rowNames(): Array<string> {
    const keys = Object.keys(EventType);
    return keys.slice(keys.length / 2);
}

Source

Also in JavaScript: