Just like we use \n instead of
to see the line break changes in the interface, how do we bold the specific text? What can be the alternative solution apart from using [innerHTML]?
for example: .ts file
string = This is a STRING bold testing.\n Thankyou!; // here I want to word STRING to be bold
.html file
<h2 [innerText]="string"></h2>
You have to use a custom Pipe for making bold for a particular string. Please find the below URL for your reference.