In earlier versions of RC Angular 2, I managed to add a window object by adding
{provide: Window, useValue: window}
To an array of suppliers.
Since upgrading to the latest stable version of Angular 2 (2.1.0) now causes a console error
compiler.umd.js: 14268Uncaught Error: cannot resolve all parameters for LoginComponent: (AuthService, UserMessagesService ,?).
What? in the parameter list where I am trying to enter a Window object.
source
share