Kendo ui 否则 angularjs

Kendo ui if else angularjs

我如何使用 angularjs 在 Kendo UI 网格中创建一个条件,它将检查 table 中的整数并与之相关(如果 1 那么some class, if 2 then some other class..) apply the class on the cell where is the integer located?

为此创建了一个 fiddle,检查这是否有帮助:

http://jsfiddle.net/Sowjanya51/krszen9a/

我用过if-else,条件语句你也可以用switch

 if(this.innerText=='1')