how to apply the style properties dynamically like bold, italic and font size when i select the particular icon?

when I click on the icon I want to apply the property to the text inside textarea. how can I achieve this by using angular6 and typescript? please help me. thanks in advanceenter image description here.

Source: New feed
Source Url how to apply the style properties dynamically like bold, italic and font size when i select the particular icon?