📜  ngclass angular - TypeScript 代码示例

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

代码示例6
//if the number is over 5, the class 'green' will be added to the div. //if the number is below or equal 5, the class 'red' will be added to the div.