Ember.View.views

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

I had the same question, found this: [BUGFIX release] Ember.View.views should be present by teddyzeenny · Pull Request #11437 · emberjs/ember.js · GitHub

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?