Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AngularJS $rootScope has a property $$phase #64

Closed
seanhess opened this issue Nov 9, 2012 · 1 comment
Closed

AngularJS $rootScope has a property $$phase #64

seanhess opened this issue Nov 9, 2012 · 1 comment

Comments

@seanhess
Copy link
Contributor

seanhess commented Nov 9, 2012

I use it to detect if a digest is in progress.

@diegovilar
Copy link
Contributor

Hi, Sean

$$phase, just like $$asyncQueue and $$listeners, are not public properties.
They are not even documented.

However, you can still access them, just like any other non-declared
interface:

( $rootScope).$$phase

But since they're private members, I'm afraid I should not declare them.

That being said, I did indeed declared some undocumented members, but only
because, reading the source code, It appeared clear to me that they just
forgot to document them.

Diego

Em sexta-feira, 9 de novembro de 2012, Sean Hess escreveu:

I use it to detect if a digest is in progress.


Reply to this email directly or view it on GitHubhttps://github.com//issues/64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants