Skip to content

Configurable injection points

Choose a tag to compare

@poteto poteto released this 29 Mar 22:57
· 340 commits to master since this release

You can now choose which factories you want to inject the flash message service into, by setting this prop in the flashMessageDefaults prop in config/environment.

module.exports = function(environment) {
  var ENV = {
    flashMessageDefaults: {
      injectionFactories : [ 'route', 'controller', 'view:bar', 'component:foo' ]
    }
  }
}
Changelog
  • Injection points now configurable
  • Fixed broken overrides