ember-config-service
Easily get values from your app's config/environment.js
with a service.
Usage
Install this addon by running the following with Ember CLI.
ember install ember-config-service
The config
service is now available for you to use in your app. For example, if you added the following to your config/environment.js
:
ENVapi =host: 'http://mydomain.com'namespace: 'myapi';
You could define your application adapter with the following:
;;JSONAPIAdapter;
Contributing
Pull requests and issues are welcome!
Installation
git clone
this repositorynpm install
bower install
Linting
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.