Skip to content

Instantly share code, notes, and snippets.

@poteto
Last active August 29, 2015 14:10
Show Gist options
  • Save poteto/19e269d2af60c1781296 to your computer and use it in GitHub Desktop.
Save poteto/19e269d2af60c1781296 to your computer and use it in GitHub Desktop.
import FlashMessagesService from 'ember-cli-flash/services/flash-messages-service';
export function initialize(_container, application) {
application.register('service:flash-messages', FlashMessagesService, { singleton: true });
application.inject('controller', 'flashes', 'service:flash-messages');
application.inject('route', 'flashes', 'service:flash-messages');
}
export default {
name: 'flash-messages-service',
initialize: initialize
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment