ContainerProxyMixin#ownerInjection()

ownerInjectionObjectpublic

Defined in packages/ember-runtime/lib/mixins/container_proxy.js:26

Returns an object that can be used to provide an owner to a manually created instance.

Example:

let owner = Ember.getOwner(this);

User.create(
  owner.ownerInjection(),
  { username: 'rwjblue' }
)

Returns:

Object
doc_EmberJs
2016-11-30 16:48:56
Comments
Leave a Comment

Please login to continue.