Finished Loading of ng-include in angular js

后端 未结 6 525
春和景丽
春和景丽 2020-12-13 02:28

What is the best way to detect the end of html loading by ng–include? I want to write some code that runs when it has finished loading.

6条回答
  •  借酒劲吻你
    2020-12-13 02:49

    Here's a complete example that will catch all the ng-include load events emitted by the application:

    
      
        
      
      
        

    A problem I had, and the reason I take the time to post this, is I failed to include both the ng-app and ng-controller in my HTML markup.

提交回复
热议问题