Say I have the following anglarjs DOM Structure
<div ng-init="isRed = true"
ng-class="{'red': isRed == true, 'black': isRed == false}">
... content
</div>
How would I get the 'compiled' version of this on a click event for example? I.e.
<div class="red">
... content
</div>
I've got an angularjs page that uses various ui-bootstrap components and I want to get the raw html of the page, send it to a server so that it (server) can generate a .pdf file from the sent html.
The server will have access to all relevant css files.
Edit:
I have tried innerHTML to no avail.