0.1.4 • Published 3 years ago

ember-config-helper v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ember-config-helper

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.

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v3.16 or above
  • Node.js v10 or above

Installation

ember install ember-config-helper

Usage

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

{{config "defaults.username"}}

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago