Amareswar
Amareswar

Reputation: 2064

what is the use of ready method in Ember.Application? Will it be called after all the views are initialized?

what is the use of ready method in Ember.Application? Will it be called after all the views are initialized? Otherwise is there any handle i can get from ember which gives callback after all views are initialized.

Upvotes: 5

Views: 1546

Answers (1)

ebryn
ebryn

Reputation: 4407

Ember.Application#ready will fire after DOM ready and your application has been initialized.

What problem are you trying to solve that you'd like to have a callback after all views have been initialized?

Ember.View#didInsertElement will tell you when a specific view has been inserted into the DOM.

Upvotes: 6

Related Questions