Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ember.js

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.

like image 824
Amareswar Avatar asked Mar 01 '12 23:03

Amareswar


1 Answers

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.

like image 198
ebryn Avatar answered Nov 16 '22 16:11

ebryn