Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on angular 2.0.0-rc.4 #57

Open
SET001 opened this issue Aug 10, 2016 · 1 comment
Open

Does not work on angular 2.0.0-rc.4 #57

SET001 opened this issue Aug 10, 2016 · 1 comment

Comments

@SET001
Copy link
Contributor

SET001 commented Aug 10, 2016

while trying to bootstrap it like this:

var appPromise = bootstrap(AppComponent, [LocalStorageService]);

LocalStorageSubscriber(appPromise);

it give an error:

Uncaught Cannot resolve all parameters for 'LocalStorageService'(?). Make sure that all the parameters are decorated with Inject or have valid type annotations and that 'LocalStorageService' is decorated with Injectable.

@SET001
Copy link
Contributor Author

SET001 commented Aug 10, 2016

Investigating this issue I came to this simple fix in LocalStorageEmitter.ts:37

constructor(@Inject(NgZone) private ngZone: NgZone) {

this fixed error in my first post but now I'm getting No provider for NgZone!

and I have no idea why there is no provider for NgZone and how to fix this *(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant