In this video Iftach Bar explains when the digest loop is not being called automatically, and what it might trigger in the app.
- [Instructor] It seems like the Angular team…did a good job.…Since most of us developers…never really needed to know…about this digest loop that happens…and we could count on the bindings to just work.…Now you know the bindings work…because I'm going to initiate a digest loop…in almost every action that can affect the bindings.…However, if you've been developing apps with Angular…long enough,…you might have stumbled some cases…where there is a weird delay in the bindings.…
Maybe cases where things are not synchronized on the screen…and only after a while,…or after the user does something on the screen,…they get synchronized.…This affect usually happens…when there is a piece of code that acted scope variables…outside the Angular context.…And there is no explicit goal to the digest loop.…Let's look at an example in our code.…I'm going to add jQuery to my project real quick.…First I'll go into the browser and search for jQuery.…
I'm going to go into the jQuery site and download jQuery.…The latest version will work.…
This advanced AngularJS course helps you explore the connected worlds of $scope and the digest cycle. Instructor Iftach Bar explains scope and inheritance, goes behind the scenes of the digest loop, and teaches both manual and automatic data binding approaches. Plus, learn how to integrate external libraries, diagnose performance issues, and debug your applications.
- $scope and controllers
- $scope built-in variables and methods
- $scope prototype inheritance
- Manual data binding with $scope.$watch
- The digest loop
- Get the $scope in the console
- Forcing $digest
Skill Level Advanced
AngularJS 1: Building a Data-Driven Appwith Ray Villalobos2h 15m Intermediate
1. Scope Basics
2. Manual Data Bindings
3. The Digest Loop
4. Tips for Debugging Angular in the Console
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.