ember.js - changes not propagated from controller to view -


i thought executing update update view:

emberapp.blogcontroller = ember.objectcontroller.extend({    productname: 'test',     update : function() {       this.set('productname', 'll');    }  }); 

the template is

<div> {{productname}} </div> 

test displayed. calling update has no effect.

i call update this:

 onchange : function(e) {         var mycontroller = emberapp.__container__.lookup('controller:blog');         mycontroller.update();     }, // onchange event kendoui grid 

regards roger

i guess should use send invoke methods on controller.

try instead:

onchange : function(e) {   var mycontroller = emberapp.__container__.lookup('controller:blog');   mycontroller.send('update'); }, // onchange event kendoui grid 

hope helps.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -