发送事件时angular.js加载完成 [英] Sending event when angular.js finished loading
问题描述
想知道什么是检测页面加载/引导的光洁度最好的办法,当所有的指令进行编译/链接
wondered what's the best way to detect the finish of page loading/bootstrapping, when all directives done compiling/linking
已经存在任何事件?我应该重载引导功能?
any event already there? should i overload the bootstrap function?
有任何想法谢谢
利奥尔
thanks for any ideas Lior
推荐答案
本想增加一个实现我对我自己的问题:角处理不当提供的方式,当一个页面加载完成,也许是因为完成信号取决于你的应用即可。例如,如果你有谐音的分层树一装载其他。 完成就意味着所有的人都被加载。任何框架将有一个很难分析你的code和理解,一切都完成后,或仍有待upon.For,你必须提供应用程序特定的逻辑来检查并确定。
Wanted to add one more realization I had about my own question: Angular hasnt provided a way to signal when a page finished loading, maybe because 'finished' depends on your application. for example, if you have hierarchical tree of partials, one loading the others. 'finish' would mean that all of them have been loaded. Any framework would have a hard time analyzing your code and understanding that everything is done, or still waited upon.For that, you would have to provide application-specific logic to check and determine that.
感谢
利奥尔
这篇关于发送事件时angular.js加载完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!