Open pl4yradam opened 5 years ago
[ x ] Bug report
[ x ] @ng-toolkit/universal
Following the npm page, injecting the window into the constructor.
Expecting it to use the window function
constructor( @Inject(WINDOW) private window: Window, private swUpdate: SwUpdate, ) { console.log(this.window); this.window.addEventListener('beforeinstallprompt', (event) => { this.promptEvent = event; }); }
It doesn't work.
Angular version: Latest 7 - Node version: Latest - Platform: Windows Others:
Same issue. Any possible solution?
@smapig Can you share your package.json file to checkout the version of ng-toolkit/universal being used?
package.json
ng-toolkit/universal
I'm submitting a...
In package
Current behavior
Following the npm page, injecting the window into the constructor.
Expected behavior
Expecting it to use the window function
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
It doesn't work.
Environment