Is there a way to extract the data from ng-repeat?
<div ng-repeat="w in quick.wint">
<div id="wname"><strong>{{w.Name}}</strong></div>
<div id="wcount">{{w.Count}} Open Queues</div>
</div>
I am looking to store this information in a variable for printing purposes.
var wname = document.getElementById('wname').innerHTML;
var wcount = document.getElementById('wcount').innerHTML;
var popupWin =window.open('','_blank','width=300,height=300');
popupWin.document.open();
popupWin.document.write('<html><head><link rel="stylesheet" type="text/css" href="style.css" /></head><body onload="window.print()"><h1>Documentation</h1>' + wname + '</body></html>');
popupWin.document.close();
I would like to format the display on the printed document differently than how it appears in the browser. For instance, instead of:
<wname>
<wcount>
I want it to be shown as:
<wname> : <wcount>
Thank you in advance!