Reputation: 229
How can I know when ng-view is completely rendered. Currently I have tried to use
$scope.$on('$viewContentLoaded', function() { }
$scope.$on('$routeChangeSuccess', function() { }
angular.element(document).ready(function() { }
but all these are firing before view is rendered.
Upvotes: 4
Views: 8938
Reputation: 4302
As I mentioned in the comment, use the onload
argument of the ng-view directive
Upvotes: 3