Soman Dubey
Soman Dubey

Reputation: 3906

An example of ContainerView required where childViews are binded with their respective controllers

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

Upvotes: 0

Views: 558

Answers (1)

Soman Dubey
Soman Dubey

Reputation: 3906

This is possible by overriding controller property of View.

App.MetricsView = Ember.View.create({
     templateName: 'summary',
     loaded: true,
     controller: App.SummaryController.create(),
});

Upvotes: 3

Related Questions