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
No provider for Storage! #55
Comments
That sounds right. In my file
And then in
|
In our app.module.ts we have the following.
However for any page that utilises the profileService, where we run the following
We are getting an error Struggling to understand why ? |
The issue was on our end. We were declaring the services in each page and not module wide. Fixed now, thanks @shawnlauzon. Closing issue. |
Hey,
Great work with Ionic 2 guys. I've imported and injected the ionic-storage export (
{ Storage } from '@ionic/storage'
) as a provider in NgModule. I've then imported it and DI it into a service. The problem is, as well as injecting this service into any component which uses it, we are also having to import Storage as well.Does anyone know why this would be the case?
Thanks
The text was updated successfully, but these errors were encountered: