var view = Ember.View.extend({
templateName: 'some',
//action: 'save',
//click: function () { this.triggerAction(); },
init: function () {
this._super();
this.set('controller', App.SomeController.create())
}
});
view.create().appendTo("#divMain");
Here i am creating the view and appending to a div, however here i have to explicity set the controller this.set('controller', App.SomeController.create())
Is it possible to implicitly assign the controller while creating view?