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
Post a Comment