If I have a template as such:
<div [innerHTML]="html"></div>
and in the component:
public html = "<div class='title'>Title</div><p>etc. etc.</p>";
public theme = {
title: {
styles: {
letterSpacing: '1px',
fontWeight: 'bold',
color: 'gray'
}
}
};
How can I apply the CSS in theme.title.styles to the rendered HTML?
One idea I had is to dynamically define the styles in the component metadata, but I don't know whether this is possible.