Angular js ng-view rendered event

How can I find out when ng-view is fully displayed. I am currently trying to use

$scope.$on('$viewContentLoaded', function() { }
$scope.$on('$routeChangeSuccess', function() { }
angular.element(document).ready(function() { }

but it all works while the view is being rendered.

+4
source share
1 answer

As I mentioned in the comment, use the argument onloadof the ng-view directive

+3
source

Source: https://habr.com/ru/post/1532502/


All Articles