Gaining access to an app's config file from a template only route or component can be annoying. This addon provides a convenience helper to read the config from within the template.
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v12 or above
ember install ember-config-helper
Let's say your environment.js file looks like this:
module.exports = function (environment) {
let ENV = {
defaults: {
username: "John Doe"
}};
return ENV;
};
This helper allows you to access that information as follows in your hbs file
See the Contributing guide for details.
This project is licensed under the MIT License.