or else bind controller to two different views.
I’m doing this so my 'home' view gets the PostsController ‘s content.. but I need the real way to do it, if you can help me please!
HomeController: Ember.ArrayController.extend({
init: function() {
setTimeout(function() {
App.router
.get('homeController')
.set('content', App.router.get('postsController').get('content'));
}, 0);
}
})
(using last version at this time SHA: 83542a6)
I don’t quite understand your question. What’s wrong with the solution below? (original jsFiddle here) (updated jsFiddle here)
(UPDATED: Added skeleton router)
JavaScript / Ember:
HTML / Handlebars: