I have the body of an email stored in a javascript/typescript string (message.body). The content of that string is an html code like this:
<div dir="ltr">test mail</div>
I'm using angular bootstrap and I tried this code:
javascript/typescript code:
ShowMessage(message: MailMsg) {
const modalRef = this.modalService.open(MailModal, { centered: true });
modalRef.componentInstance.msg = message;
modalRef.componentInstance.body = $(message.body);
}
html code:
<div class="bodyMsg">
<div type="text/html">{{body}}</div>
</div>
I'm getting this output: [object Object]
How can I propperly display the content of that initial message.body string?
Thanks