mardi 24 novembre 2015

this.container.lookupFactory no longer works in ember@2.2.0

Since updating to ember@2.2.0, const config = this.container.lookupFactory('config:environment'); no longer works.

I can't use import ENV from 'your-application-name/config/environment'; because I don't actually know what the application-name is as I am using this in an addon and also some blueprints.

What is the alternative?




Aucun commentaire:

Enregistrer un commentaire