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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -