Change text color while typing in angular

I am working on a Note Taking application, Requirement is when user types the text, It should in Red color, If he wants the rest of the text to be in black color while typing that also has to be achieved

Source: New feed
Source Url Change text color while typing in angular