-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
this.get('flashMessages') returns undefined. Pod structure? #71
Comments
@ajrob27: I have an ember-cli 0.2.7 app set up with pods, and this add-on seems to work as advertised (thanks @poteto!!!). Two things come to mind though, first, in your example you are calling the wrong attribute, it should be |
I have the same issue, for some reason flashMessages is not injected into controllers (only see it in routes and views). I thought there was a problem with injectionFactories and tried to inject the service into controllers through an initializer, but I still don't have any flashMessages property. On Ember 1.12.1, Ember-cli 1.13.1, with pods |
Injecting the service into each controller which needs it with |
@Leooo, I'm been out of Ember for quite a while now, I'm not going to be any help 😞 Sorry! |
@Leooo: Did you modify any of the configuration defaults? I just set up a test environment with Ember 1.12.1, ember-cli 1.13.1, and ember-cli-flash 1.3.8, using pods, and the |
Thanks for checking @thermokarst. I didn't change anything in the config yet. Yes, I'm using |
Don't forget to restart |
I'm trying to use ember-cli-flash with my application that is laid out in a pod structure. When calling
this.get('flashMessage')
from the controller, I get an errorUncaught TypeError: Cannot read property 'success' of undefined
.Do you know if the pod structure might cause conflict?
I will try to post an example of the error sometime tomorrow.
The text was updated successfully, but these errors were encountered: