Connecting (injecting) routes later?


#1

I ran into a full stop with the following problem. Lets hypothetically assume we have a slider component that fits inside some 4 views. The slider requires all views to be rendered before init. So the views are dynamically rendered with the ‘lookupRender’ helper inside {{each}}.

Ember.Handlebars.registerBoundHelper(‘lookupRender’, function(name, contextString, options) { return Ember.Handlebars.helpers.render.apply(this, arguments); });

All inside SliderController context. And it seems that they picked up their respective controllers. Slider initialized and when the route got switched, store retrieved the RecordArray and now setupController should assign it to the proper ArrayController, which is already initialized in the slider.

But the instance is different.

How bad is my understanding?