This is a fairly common use case. Use the observer to specify the code that should be executed after making changes to the properties. Ember calls observers after the change is successfully propagated. For example:
App.MathView = Ember.View.extend({ controller: null, template: Ember.Handlebars.compile("<div>{{myProperty}}</div>"), myPropertyDidChange: function() {
See the Ember Asynchronous Launch Management Guide and API for Ember.run: http://emberjs.com/guides/understanding-ember/managing-asynchrony/ http://emberjs.com/api/classes/Ember.run.html #method_next
Mike grassotti
source share