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.
ng–include
you can use onload for it as below
onload
in controller,
$scope.finishLoading = function() { }
after loading the ng-include finishLoading scope function will call.
ng-include
finishLoading
here is the working Demo Plunker