After several more studies, events were released for this purpose.
$scope.$on('$routeChangeStart', function(scope, next, current){ //... }); $scope.$on('$routeChangeSuccess', function(scope, next, current){ //... });
If the problem is to revive something (for example, when changing the route), I recommend using ngAnimate. Read more about it here.
Kenneth lynne
source share