I need to print one of the pages in my Angular app, so I have something like:
myPage = window.open();
myPage.Print();
The thing is that I get the following error from tslint:
"Usage of window is not allowed"
I looked of some answeres here / other solutions, for example: https://brianflove.com/2018/01/11/angular-window-provider/
but they all use at some point window
return window;
and then I'll get the error messge "Usage of window is not allowed"
again.
How can I solve it ?
Thanks.