2

I want to print a modal window with data that I get from a service. So far I have read about some CSS methods that hide other elements on @media print, but I have not quite understand how or where to use this.

Anyone has had any experience printing this modal windows in angular 2+?

Thank you in advance for any pointers.

V. Benavides
  • 533
  • 1
  • 7
  • 21
  • You should add some details about what you are trying to achieve. Maybe some code sample. Which CSS libraries you have already tried. Anything that can help to start somewhere. In the state, we can not really help without writing all the code for you... – Noémi Salaün Nov 12 '17 at 22:30
  • i use ng-bootstrap for modals , it works great – Fateh Mohamed Nov 12 '17 at 22:40
  • I am using ng2-bootstrap-modals for creating modals, but my question goes on how to print them without printing any other parts of the page. – V. Benavides Nov 12 '17 at 23:12
  • Noémi I do not intent to have the code written for me, so far I haven't tried any CSS libraries, I have been trying to write the code myself, I read I have to hide all the code but the modal in order to print it. What I was hoping was to get some clues as what CSS to use and where should I place it. – V. Benavides Nov 12 '17 at 23:14
  • These questions are becoming terrible – cgatian Nov 12 '17 at 23:31
  • https://stackoverflow.com/questions/41379274/print-html-template-in-angular-2-ng-print-in-angular-2 – Jefferson Hudson Jan 28 '19 at 14:52

0 Answers0