Created
July 21, 2015 01:18
-
-
Save williamsbdev/5b20da286ae82a0fc79e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
var injection = function(key, name) { | |
return Ember.computed(function(propertyName) { | |
var objectName = name || propertyName; | |
return this.container.lookup(key + ':' + objectName); | |
}); | |
}; | |
export default injection; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment