Aviv Shaked
Aviv Shaked

Reputation: 762

Manually trigger Angular to reevaluate the DOM

Is there a way to trigger Angular to reevaluate the DOM? I am looking for a way to manually make Angular reevaluate the entire DOM, or better yet, a specific ng-controller DOM-Node. Is there a way to do that?

Upvotes: 2

Views: 484

Answers (1)

Matjaz Lipus
Matjaz Lipus

Reputation: 711

if you're outside of an digest loop you can enter it by calling $rootScope.$apply() or $scope.$apply()

Upvotes: 1

Related Questions