How to use a dynamic value with ngClass

前端 未结 5 1687
死守一世寂寞
死守一世寂寞 2020-12-17 08:14

I\'m trying to apply a class name that\'s the same as a scope variable.

For example:

So

5条回答
  •  暖寄归人
    2020-12-17 08:33

    Simply using the variable should be sufficient:

    This is also documented in the official documentation.

提交回复
热议问题