Use variable in style tag in angular template?

前端 未结 4 1675
野性不改
野性不改 2021-02-20 01:55

I am working on angular 5 application, and I have requirement of applying dynamic css in style tag in template. I have tried some solutions but they are not working.

app

4条回答
  •  忘掉有多难
    2021-02-20 02:15

    By the way if you set the color like this:

    where color='var(--cssValue)' it would not work!

    However, this works correctly:

提交回复
热议问题