I have developed a factory that generates HTML content. I want to showcase this generated HTML within a specific section of my application, without its CSS affecting the rest of the site, and vice versa. While using an iframe is one option, I believe there might be a more efficient way to achieve this in Angular.
Here's a simplified version of what I currently have (using Angular 1.2):
var promise = myFactory.getHtml();
getTemplate.then(function(data) {
$scope.mine.html = $sce.trustAsHtml(data.data);
});
Although I am able to display the HTML content as intended, it appears unattractive when embedded within my app. How can I ensure that it remains independent?