# Templates and controller binding

**URL:** <https://discuss.emberjs.com/t/templates-and-controller-binding/6570>\
**Category:** Uncategorized\
**Created:** [October 27, 2014, 6:42am UTC](https://discuss.emberjs.com/t/templates-and-controller-binding/6570 "2014-10-27T06:42:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexpereda](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@alexpereda](https://discuss.emberjs.com/u/alexpereda)\
**Post date:** [October 27, 2014, 6:42am UTC](https://discuss.emberjs.com/t/templates-and-controller-binding/6570/1 "2014-10-27T06:42:42Z")

</div>

I’m startung an application and have a template that is binding to a model defined on the route, to the auto generated controller. I want to define a controller to add actions, but as soon as my controller is present an assigned to the template I lose the bindings.

Here is the code:

```
window.App = Ember.Application.create({
    rootElement: '#app-container'
});

App.ApplicationView = Ember.View.extend({
    templateName: 'application'
});

 
App.SetupCoverRoute = Ember.Route.extend({
    model: function(){
        return {
            title: 'My book title is long',
            subTitle: 'Eub Ttitle',
            penName: "Author's pen name",
            bookTemplate: "default",
            coverImage: ""
        }
    }
    
});
 

App.SetupCoverController = Ember.Controller.extend({
    isWindowOpen: true
});

```

If I remove the SetupCoverController then the bindings work again.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![naseby](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@naseby](https://discuss.emberjs.com/u/naseby)\
**Post date:** [October 27, 2014, 6:55am UTC](https://discuss.emberjs.com/t/templates-and-controller-binding/6570/2 "2014-10-27T06:55:13Z")

</div>

Make it an ObjectController, it’ll likely work.

---

<div class="post-metadata">

**Author:** ![alexpereda](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@alexpereda](https://discuss.emberjs.com/u/alexpereda)\
**Post date:** [October 27, 2014, 7:48am UTC](https://discuss.emberjs.com/t/templates-and-controller-binding/6570/3 "2014-10-27T07:48:07Z")

</div>

That was the solution. Thanks for the reply.
