Execute code once after all views have completely rendered in Ember.js
问题 Something like document ready, but after all Ember views rendering I am doing this right now with an override on ApplicationView didInsertElement, which seems to be working so far: App.ApplicationView = Em.View.extend({ didInsertElement: function() { // Do your magic. } }); I am wondering if this is the right way for an Ember document ready, or if Ember has a more native support for this simple and very common thing. 回答1: You can easily add a "post render" hook by reopening the base View