If I have this angularjs DOM structure
<div ng-init="isRed = true"
ng-class="{'red': isRed == true, 'black': isRed == false}">
... content
</div>
How can I obtain the 'compiled' version of this on a click event, for instance?
<div class="red">
... content
</div>
I'm working on an angularjs page that utilizes various ui-bootstrap components and my goal is to extract the raw HTML of the page, then send it to a server where it will be used to generate a .pdf file.
The server will have access to all necessary CSS files.
Edit:
I attempted to use innerHTML without success.