I am new to Angular2 and was wondering how I go about setting a font color to an element depending on the value.
Angular2
My scenario is: if the value of the inp
Since you use Angular2, So you need to use [ngClass], and your input model is bind to proportion, So use it to compare,
[ngClass]
proportion
Do it like :
hello {{username}}