Using Instance Initializers with Ember 1.12.0 and the Ember CLI

后端 未结 1 1387
日久生厌
日久生厌 2021-01-17 08:52

After updating my app to Ember 1.12.0, I notice lots of warnings like this:

lookup was called on a Registry. The initializer

相关标签:
1条回答
  • 2021-01-17 09:33

    Turns out a browser plugin of all things was blocking the information I needed on the original blog post. I'll leave this here in case it's useful to anyone, but in the CLI regular initializers go inside

    app/initializers/__my__initializer.js
    

    while Instance Initializers are defined like

    app/instance-initializers/__my__initializer.js
    
    0 讨论(0)
提交回复
热议问题