use ngclass in ngif tag using angular 8 code example Example: ngclass content_copy ... ... ... ... ...