I'm dealing with an ionic 5 app that was built as a web app. There's no mobile component to it.
I need to allow users to print a page. When I have a print button and associated with a function like the one below, it only prints the viewable area.
printPage() {
window.print();
}
Given the amount of content on the screen, I can tell that this document should be 2-3 pages long.
I see that there's a cordova-plugin-printer plugin, but it's meant for printing from a mobile device.
What's the proper way to get the entire DOM printed?