Function
setOwner (object, object) public
Module: | @ember/application |
---|
Defined in packages/ember-utils/lib/owner.js:56
Available since v2.3.0
import { setOwner } from '@ember/application';
- object
- Object
- An object instance.
- object
- Object
- The new owner object of the object instance.
setOwner
forces a new owner on a given object instance. This is primarily useful in some testing cases.
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Fapplication/setOwner