阅读背景:

AngularJS -如何在事件被触发之前等待加载模板。

来源:互联网 

Simply put my case is that I fire an event from the run phase. In several directives I listen to this event and execute code. The problem is that on my development machine some directives get the template via the templateUrl property before compiling the directive. Because of this it will miss the event. This behaviour can be reproduced with the $locationChangeSuccess event. Simply put my case is that I fire an event from




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: