In Angular, the digest cycle runs automatically to check for changes in models until no further changes are detected or a loop limit is reached (usually 10 iterations). This process, known as "dirty checking," allows Angular to apply changes efficiently. To manually trigger a digest cycle, you can use the $apply
method to prompt Angular to check for any modifications you've made without waiting for the next automatic cycle.
For more information on digest cycles and the $apply
method, here's an interesting post that delves into this topic.