Injecting a configuration object


Hi all, I would like to access a configuration object that is read-only and consumed by all the instances of our ember app in a particular deployment. This configuration object has to be accessed in from components, controllers and templates. . Initially, I put the this object in a js file that exports a json object. Then I created a property (cfgStore: function(){return cfgStore;}.property()) in the application controller which I access from other controllers/templates. My question is, what is the the best practice for doing this? I imagine that creating a single ton service that is then injected could be one, but I am not sure. Thanks in advance, D.


config/environment.js is a good place for that kind of stuff… especially if it differs between deployments.