Ember.js: How are Views connected to Controllers? -
this.get('controller')
is coming null.
i wondering if can explain how ember views associated ember controllers. thank you.
if follow ember's naming conventions, example view infoview
hooked automatically infocontroller
ember.
app.infoview = ember.view.extend({ templatename: 'info' }); app.infocontroller = ember.controller.extend({});
so if later this.get('controller')
in view should controller.
see fiddle working example: http://jsfiddle.net/intuitivepixel/aywvw/20/
Comments
Post a Comment