Name: ember-getowner-polyfill
Owner: Particle
Description: null
Forked from: rwjblue/ember-getowner-polyfill
Created: 2016-03-03 01:32:45.0
Updated: 2016-03-03 01:32:45.0
Pushed: 2018-01-03 18:26:02.0
Homepage: null
Size: 22
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This provides a polyfill for the Ember.getOwner
feature added in Ember 2.3.
r install ember-getowner-polyfill
rt getOwner from 'ember-getowner-polyfill';
rt default Ember.Service.extend({
meMethod() {
let owner = getOwner(this);
// do stuff with owner
The returned owner object should support all of the methods of the ContainerProxyMixin
and RegistryProxyMixin
.
This addon is tested against quite a few past Ember versions. Check config/ember-try.js
for the current list, but
the list of supported Ember versions at the time of authoring was:
git clone
this repositorynpm install
bower install
ember server
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.