Dynamic reload of model and template after an action in the controller


#1

Hi,

I’m using Ember 1.11.3 with Handlebars…

I have a button that will send an Ajax request from the controller to my server backend and get some data. This data is to be loaded into the current model and then I would like to refresh the template.

The Ajax asynchronous call works fine, but I can’t find a way to update dynamically the model and the template.

I have tried this.refresh() and this.transitionTo(’’) but nothings seems to work, and there is not much help on the other forums.

Please help thanks!!!