github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/initializers/app-env.js (about) 1 export function initialize() { 2 const application = arguments[1] || arguments[0]; 3 4 // Provides the app config to all templates 5 application.inject('controller', 'config', 'service:config'); 6 application.inject('component', 'config', 'service:config'); 7 } 8 9 export default { 10 name: 'app-config', 11 initialize, 12 };