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

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -