I have developed a single page angular app. I have a complex view where i need different formatting for page prints. There is a print button and when i clicked it, the layout should change to fit everything nicely. Using a different template is not an option because it takes like a minute or two to run some humongus query on the backend to fetch the data. (also it'd be neat not to have the page refreshed just for the print preview)
Current Situation:
When i clicked on the button i trigger a function to add a url parameter to the current url to check if i'm in the print preview mode so i can use the browser controls to go back to if i want to. $location.search({ 'printPreview': 'True'}); also used document.getElementById('print').style.display = 'none'; this focusing to hide the print preview button on the print view. NO LUCK! :(
I need help with: Understanding the best approach to implement this by staying in the same page. any additional code help would be fantastic too. Please help!!
