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
There are two solutions to change font color but depends on you requirement
NgStyle Directive which Update an HTML element styles for you..NgStyle directive Ex:
---------------------- OR -----------------------------------
NgClass Directive which Adds and removes CSS classes on an HTML element...NgClass directive Ex: