2.1.1 • Published 4 years ago
ember-get-config v2.1.1
ember-get-config
Gaining access to an app's config file from an addon can be challenging. If possible, you should always get it through the container like so:
export default Ember.Component.extend({
someFunction() {
const config = Ember.getOwner(this).resolveRegistration('config:environment');
. . . .
}
});If you do not have access to the container though, you can always use ember-get-config.
Installation
ember install ember-get-config
Usage
Simply:
import config from 'ember-get-config';Which allows you to do handy things like:
const { environment, modulePrefix } = config;Boom!
Contributing
See the Contributing guide for details.
1.1.0
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
2.0.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.0
5 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
9 years ago
0.2.1
9 years ago
0.2.0
9 years ago
0.1.11
9 years ago
0.1.10
9 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
9 years ago
0.1.4
9 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago