-
Notifications
You must be signed in to change notification settings - Fork 51
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
Icon configuration #61
Comments
By default you don't have access to ENV in addons. Can you console log in your component init the ENV to see check if you actually have access? |
Yeah Im not seeing it. Would a |
No, I doubt it. It's not exposed by default if you're using the One way is to move your addon code to the |
Using v0.7.0
I'm attempting to set the icons global, but it doesn't seem to be working. I'm sure I'm missing something stupid, but haven't found many examples to go by...
I can see the icons object when I do
require('web-directory/config/environment')
from the Chrome Inspector console...but when I step into the breakpoint atdate: this.getWithDefault('config.icons.date', defaults.icons.date),
, there's nothing atroot.config
.I'm not sure if it makes a difference, but the environment config file is on my parent app, while the datetimepicker component is in an addon being used by one of the engines inside the parent app. It's clear that the datetimepicker code is being loaded, but for some reason it seems that its not loading, or not finding, the env variables?
The text was updated successfully, but these errors were encountered: