I have some jQuery code which needs to be run when a view is rendered. For the initial render I can easily do
App.FooView = Ember.View.extend({
didInsertElemen
In addition to Akash's explanation, you would want to use the didInsertElement hook instead of the init hook to only re-render after the view is created. So it would look more like:
App.FooView = Ember.View.extend({
didInsertElement: function() {
this.rerender();
}
});
Although, I'm not exactly sure why you'd need to rerender after the view has already rendered.