📜  条件样式 angular - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:28.111000             🧑  作者: Mango

代码示例2
// ngStyle (conditional Style)

{{i}} {{data.title}}

//if the index of the element is 1 or 0, the background will be red, if it is over 1 the background will be green