I am working with an object named "Content" that has two properties:
Content:{
html:string;
css:string
}
My task is to render a div based on this object. I can easily render the html using the following code:
<div [innnerHtml]="Content.html"></div>
However, I am facing difficulty in rendering the css of the object. Here's an example of the Content object:
Content:{
html:"<p>test rendering the object</p> <br> <div class="div1"></div>",
css:"p{color:red} .div1{background-color:black}"
}