With the removal of Ember.View.views is there an alternative to do a view/component lookup?

I had the same question, found this: https://github.com/emberjs/ember.js/pull/11437

i grabbed this from Ember Inspector.

I use it in a test helper which is given the app instance and ended up with app.get('__container__').lookup('-view-registry:main');

Thanks for the heads up. IMHO it shouldn’t be this difficult.

Ended up adding my own Views hash as we have our own base component class and so add our components when instantiated to this hash.

1 Like

What is the latest advice on this?