Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to display text Bold in Angular 8

C#

  FormName = $"<b>{x.FormName}</b>  {Environment.NewLine + x.Path}"

Angular 8 HTML

  <div [innerText]="right.formName"></div>

It looks like this

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

But I want it to look like this , I want to make heading BOLD but I used above approach and its not working

GIS Admin

/user-management/gis-admin

>Solution :

It should be:

<div [innerHTML]="right.formName"></div>

Is a property binding that will render HTML
AN example here:

https://www.digitalocean.com/community/tutorials/angular-innerhtml-binding-angular

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading