📜  迭代枚举 angular ngfor - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:18.002000             🧑  作者: Mango

代码示例1
home.component.html
.. 

  {{rowName}}


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