I’m building an addon that needs to read some configuration from the parent app’s config (the parent app provides some options to configure the addon), but it seems that there is no way to import the parent app’s config in addon/
code. I’m guessing it’s because the build process builds that folder separately and eventually concats the separate builds into vendor.js
.
Assuming that’s the case, does anyone know of any simple / elegant way to get app config into addon code, without resorting to something like what ember-simple-auth
does (maintaining a global Configuration
object and injecting the config into that via an initializer at runtime)? Or is that approach the best practice?