Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
AngularJS

$apply in AngularJS

Enter the digest loop with $apply when updating scope outside AngularJS.

$apply in AngularJS — a practical guide to AngularJS $apply with clear examples you can reuse in real projects.

AngularJS Tutorial Series (89/99). Prefer one article? Read the complete AngularJS tutorial.

Short description

Needed after raw DOM events or third-party callbacks.

$apply

$scope.$apply(function () {
  $scope.message = 'Updated from outside';
});

Leave a reply

Your email address will not be published. Required fields are marked *