In javascript I could do:
window.print()
To bring up a printer dialog box, but how do you do this in typescript?
I did just like that
print() {
// do other stuff...
window.print();
}
(window as any).print();
use above line if not using typescript 2.8.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With