Ember.View.views


#1

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


#2

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


#3

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');


#4

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.