Tino
Tino

Reputation: 229

Angular js ng-view rendered event

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

Answers (1)

JoseM
JoseM

Reputation: 4302

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

Upvotes: 3

Related Questions