I am attempting to pass through html with inline styles as a variable to an angular component.
var htmlValue = "<div style="margin-left: 13px; font-size: large;" fxLayout="column" fxLayoutAlign="center start">
Need Help?
</div>"
However the inline style is removed when rending the code on the component.
<div [innerHtml]="htmlValue"></div>
Renders as:
<div>
<div>
Need Help?
</div>"
</div>
Is there a way to stop this from happening