Angular2 - Set A Different Color to an element Depending On Value

前端 未结 5 1287
臣服心动
臣服心动 2020-12-06 02:28

I am new to Angular2 and was wondering how I go about setting a font color to an element depending on the value.

My scenario is: if the value of the inp

5条回答
  •  一整个雨季
    2020-12-06 03:06

    You need to modify your logic to have double quotes and ngModel proportion value

    
    

    hello {{username}}

    Hope it helps!!

提交回复
热议问题