Appalling Farrago

A blog about stuff

Ember Addon - Services that require config
15 May 2015

So while trying to create a service in an addon I ran into an issue trying to access config, I found this post with a solution that no longer works. Eventually I found a post on the Ember London forum with the solution that worked for me:

// app/services/service-name.js
import ServiceName from 'emberfire/services/service-name';
import config from '../config/environment';

export default ServiceName.extend({
  config
});
// addon/services/service-name.js
import Ember from 'ember';

export default Ember.Service.extend({
  // awesome service code.
});

Hope this helps anyone looking.