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: forms intro copy edit #26450
docs: forms intro copy edit #26450
Conversation
You can preview a852d99 at https://pr26450-a852d99.ngbuilds.io/. |
aio/content/guide/forms-overview.md
Outdated
|
||
- **Reactive forms** keep the data model pure by providing it as an immutable data structure. Each time a change is triggered on the data model, the `FormControl` instance returns a new data model rather than updating the data model directly. This gives you the ability track unique changes to the data model through the control's observable. This allows change detection to be more efficient because it only needs to update on unique changes. It also follows reactive patterns that integrate with observable operators to transform data. | ||
- **Template-driven** forms rely on mutability with two-way data binding to update the data model in the component as changes are made in the template. Because there are no unique changes to track on the data model when using two-way data binding, change detection is less efficient at determining when updates are required. | ||
* **Reactive forms** keep the data model pure by providing it as an immutable data structure. Each time a change is triggered on the data model, the `FormControl` instance returns a new data model rather than updating the existing data model. This gives you the ability track unique changes to the data model through the control's observable. As a result, change detection is more efficient because it only needs to update on unique changes. It also follows reactive patterns that integrate with observable operators to transform data. |
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.
Typo: ability track -> ability to track
I also think we should edit/remove the second-to-last sentence because it doesn't seem right. The phrasing here implies that change detection itself is gated on the observable.
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.
How about this?
This provides one way for change detection to be more efficient because it only needs to update on unique changes.
a852d99
to
d610de0
Compare
You can preview d610de0 at https://pr26450-d610de0.ngbuilds.io/. |
You can preview 0147659 at https://pr26450-0147659.ngbuilds.io/. |
You can preview 048c013 at https://pr26450-048c013.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.
Looks great! This came out really well
048c013
to
536bc37
Compare
You can preview 536bc37 at https://pr26450-536bc37.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 current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information