0

Basically I am using a ContainerView where I am rendering multple child views. I able to push/remove views in childView but unable to map any controller and route to have model binding and pull couple of variables which are declared in ContainerView

Details here: https://github.com/emberjs/ember.js/issues/2171

4

1 回答 1

3

这可以通过覆盖 View 的控制器属性来实现。

App.MetricsView = Ember.View.create({
     templateName: 'summary',
     loaded: true,
     controller: App.SummaryController.create(),
});
于 2013-02-27T20:13:06.107 回答