Issue
C#
FormName = $"<b>{x.FormName}</b> {Environment.NewLine + x.Path}"
Angular 8 HTML
<div [innerText]="right.formName"></div>
It looks like this
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
Answered By - Florencia Cames
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.