2.1.1 • Published 2 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
2 years ago
2.1.1
2 years ago
2.1.0
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
2.0.0
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.5.0
2 years ago
0.4.0
3 years ago
0.3.0
4 years ago
0.2.4
6 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.9
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago