Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs($rootScope): fix incorrect docs and make them clearer #7598

Closed
wants to merge 1 commit into from

Conversation

pomerantsev
Copy link
Contributor

Request Type: docs

How to reproduce:

Component(s): scope

Impact: large

Complexity: small

This issue is related to:

Detailed Description:

During the first digest loop after registering a $watch
the listener always run, so the example about the $digest cycles in the $rootScope docs was incorrect
(here's a plunk to prove it:
http://plnkr.co/edit/NRM4UIp9rk28VbylAtvl).
Also, we can make it clearer that if the value doesn't change,
the listener doesn't run on subsequent $digest loops.

Other Comments:

@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#7598)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

During the first $digest loop after registering a $watch
the listener always run, so the example was incorrect
(here's a plunk proving it:
http://plnkr.co/edit/NRM4UIp9rk28VbylAtvl).
Also, I'm making it clearer that if the value doesn't change,
the listener doesn't get called on subsequent $digest loops.
@pomerantsev
Copy link
Contributor Author

I've filled out the issue template, but the checkbox is disabled for me.

@rodyhaddad rodyhaddad self-assigned this May 29, 2014
rodyhaddad pushed a commit that referenced this pull request May 29, 2014
During the first $digest loop after registering a $watch
the listener always run, so the example was incorrect

Closes #7598
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants