-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Using new AlertController inside provider (Injectable) #7221
Comments
I have test this with a Toast that I have when the user gets out of connection and seems to be working. That nightly doesn't contain
|
Hello @Bouzmine this is caused by the fact that |
Hello all, I am going to reopen this issue as it exposed an underlying issue with AlertController and is something we want to explore more. |
@jgw96 The latest nightly is currently I bit old, that's why I compile master.
As I said before seems like everything is working fine, but if someone else could test will be great. |
@ZiFFeL1992 you're right, it works after following the steps above. Closing this. |
Short description of the problem:
I have a global Unknown error reporting service in my app which opens an alert asking the user if he wants to report the error. I used to open the alert by injecting
App
and then doing so :When I try to inject
AlertController
, it triggers this error :Where
undefined
is supposed to beAlertController
.What behavior are you expecting?
AlertController
to properly inject.Which Ionic Version? 2.x
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10-201606302045
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.6
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.0.0
Xcode version: Xcode 7.3.1 Build version 7D1014
The text was updated successfully, but these errors were encountered: