-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 overview page for @ngrx/data #1767
Conversation
Preview docs changes for 7b71449 at https://previews.ngrx.io/pr1767-7b71449/ |
Preview docs changes for 2173810 at https://previews.ngrx.io/pr1767-2173810/ |
Preview docs changes for eedecca at https://previews.ngrx.io/pr1767-eedecca/ |
Preview docs changes for c81bfef at https://previews.ngrx.io/pr1767-c81bfef/ |
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.
Not for this PR, but should we also migrate the docs? ngrx-data has a rich documentation -https://github.com/johnpapa/angular-ngrx-data/tree/master/docs
Co-Authored-By: jtcrowson <John.Crowson@CapitalOne.com>
@timdeschryver definitely. I basically summarized that documentation in this PR. Do we want to credit the original project somewhere? |
Preview docs changes for 5457629 at https://previews.ngrx.io/pr1767-5457629/ |
@@ -0,0 +1,143 @@ | |||
# NgRx Data | |||
|
|||
NgRx Data is an extension that offers a gentle introduction to NgRx by simplifying management of **entity data** while reducing the amount of boilerplate. |
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.
NgRx Data is an extension that offers a gentle introduction to NgRx by simplifying management of **entity data** while reducing the amount of boilerplate. | |
NgRx Data is an extension that offers a gentle introduction to NgRx by simplifying management of **entity data** while reducing the amount of explicitness. |
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.
Fixed in 5ef16b0.
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.
<insert @brandonroberts yelling boilerplate .gif> 😂
|
||
In even a small model, this is a ton of repetitive code to create, maintain, and test. | ||
|
||
NgRx Data allows consumers to use NgRx while radically reducing the boilerplate necessary to manage entities with NgRx. |
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.
NgRx Data allows consumers to use NgRx while radically reducing the boilerplate necessary to manage entities with NgRx. | |
NgRx Data allows consumers to use NgRx while radically reducing the explicitness necessary to manage entities with NgRx. |
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.
Fixed in 5ef16b0.
|
||
## Defining the entities | ||
|
||
We create an `EntityMetadataMap` to tell NgRx Data about our entities. Add a property to the set for each entity name. |
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.
Change the references from We
and our
to You
and your
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.
Updated in 5ef16b0.
Preview docs changes for c8ae647 at https://previews.ngrx.io/pr1767-c8ae647/ |
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?
Closes #1749
What is the new behavior?
@ngrx/data
isDoes this PR introduce a breaking change?