-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
docs: add documentation of NgZone with zone.js #34295
Conversation
@JiaLiPassion this can also be the first draft for the official change detection documentation as aked in #33731. So, I think we can close that issue also with this pr. |
876d103
to
cae3494
Compare
@ajitsinghkaler , thanks, and I will check the issue, this document is not talking about |
cae3494
to
e82514f
Compare
You can preview cae3494 at https://pr34295-cae3494.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know there's a lot here, and I apologize. I mostly focused on making the document as easy to read as possible. I'm happy to discuss these changes (or any other thoughts) at any time! Please let me know how I can help.
aio/content/guide/zone.md
Outdated
|
||
### NoopZone | ||
|
||
`Zone` will help Angular to know when to trigger Change Detection and let the developers focus on the application development, by default, `Zone` will be loaded and everything works out of the box. But you don't have to use `Zone` to make Angular work, you can still trigger Change Detection all by yourself. To remove `zone.js`, you need to do the following steps, **ALERT! if you do this, you need to understand what you are doing clearly, and you need to trigger all the change detection at the correct timing yourself**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is appropriate here? it seems like we're encouraging developers to do something that may cause problems later. Maybe this should go in a separate topic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I am not sure about this, so the noop
zone is already been official supported for a while, so the reason I put it here is it is also about Zone, so the user may have a full picture.
And of course we can also put it into a sub chapter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need documentation for no-zone, but that is outside the scope of these docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, I will create another PR to add no-zone
.
@aikidave , Thank you so much for the detailed review, I will update the doc and let you know. Thanks again and I learned a lot. |
You can preview ef80a30 at https://pr34295-ef80a30.ngbuilds.io/. |
@aikidave, I have updated the doc and reply what I changed in the comments, please review, thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some additional questions about how the Angular community talks about certain ideas and concepts, but nothing that should stop this from moving forward. Thanks for incorporating my suggestions!
@aikidave , thanks for the review again, I updated the docs based on your comments. |
You can preview 644e54e at https://pr34295-644e54e.ngbuilds.io/. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
You can preview c26307d at https://pr34295-c26307d.ngbuilds.io/. |
@kapunahelewong, thank you very much for the review and the update! |
c26307d
to
eb34fd6
Compare
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
You can preview eb34fd6 at https://pr34295-eb34fd6.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving with a single nit so adding needs_cleanup
label. Once you fix the issue please remove the label.
eb34fd6
to
4eca456
Compare
4eca456
to
fa479ae
Compare
You can preview fa479ae at https://pr34295-fa479ae.ngbuilds.io/. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the new behavior?
Add the documentation about
NgZone
and the relationship withzone.js
, and some configuration ofnoop zone
andzone flags
.