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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -