I updated from Ember 2.0.0 to 2.2.0 and no I get this "this.lookup is not a function" error when trying to get my custom authenicator.
In my controller I'm doing this:
var authenticator = self.lookup('authenticator:custom');
authenticator.signup(data)
.then(function(data2) {
I simple can't find the new proper way to lookup the service.
Thx for help
EDIT: With @Kitler Input I was able to fix it via a initalizer
export default {
name:'authenticator',
after: 'ember-simple-auth',
initialize: function(app) {
app.inject('controller', 'authenticator', 'authenticator:custom');
}
};