Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How to intepret html tag from ts string

$
0
0

@Nditah wrote:

Doesn’t work as expected: <div [innerHTML]=“output”>

In my .ts I have

output = <ion-item-divider> Trace Result </ion-item-divider>;

In my template html, I use

<div [innerHTML]=“output”>

Still, it doesn’t interpret the tags.
NB: I am using latest ionic, angular and typescript.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>