0

I am new to angular and still trying to figure out some things. I have a property of the component which is this:

myProp: any;

I have HTML code which is this:

<div>
    {{myProp}}
</div>

my problem is the value is shown stringify. which I don't want that because I use elements which I process and add in typescript code behind to style some text different than others and so, what I see now is the div with a long string of myProp value, but not like HTML elements.

I searched on the web and saw that this way of property value is being always stringified. so I want to ask what is the way to do this - use the property value to include HTML real elements.

Philipp Meissner
  • 5,273
  • 5
  • 34
  • 59
chaya D
  • 129
  • 1
  • 13

0 Answers0