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

chore(Example): Documented @ngrx/entity and added to example app #328

Merged
merged 1 commit into from
Sep 9, 2017

Conversation

brandonroberts
Copy link
Member

No description provided.

- Extensible type-safe adapters for selecting entity information

### Installation
Install @ngrx/effects from npm:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Install @ngrx/effects -> Install @ngrx/entity?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, thanks

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.195% when pulling 6891117 on entity-documentation into ebf9cf4 on master.

selectedUserId: number | null;
}

export const adapter: EntityAdapter<User> = createEntityAdapter<User>({
Copy link

@peterbsmyth peterbsmyth Aug 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ought to be userAdapter?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or line 191 ought to be adapter?

Copy link

@diginikkari diginikkari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks cool. Waiting eagerly to refactor my code to use ngrx/entity

export class LoadUsers implements Action {
readonly type = LOAD_USERS;

constructor(public payload: { user: User[] }) {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this payload be users?

export class UpdateUsers implements Action {
readonly type = UPDATE_USERS;

constructor(public payload: { user: User[] }) {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this payload also be users?

export class DeleteUsers implements Action {
readonly type = DELETE_USERS;

constructor(public payload: { user: User[] }) {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be users

@jotatoledo jotatoledo mentioned this pull request Sep 5, 2017
@brandonroberts brandonroberts force-pushed the entity-documentation branch 2 times, most recently from 42025da to ef9c516 Compare September 9, 2017 02:08
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.243% when pulling ef9c516 on entity-documentation into 0528d2d on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.243% when pulling ef9c516 on entity-documentation into 0528d2d on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.243% when pulling adf18ad on entity-documentation into 0528d2d on master.

@MikeRyanDev MikeRyanDev merged commit 0f00779 into master Sep 9, 2017
@MikeRyanDev MikeRyanDev deleted the entity-documentation branch September 9, 2017 03:35
sharikovvladislav added a commit to sharikovvladislav/platform that referenced this pull request Sep 28, 2017
* 'master' of github.com:ngrx/platform: (35 commits)
  chore(Example): Add login info to example app. Fix sidenav issue with IE (ngrx#436)
  chore(docs): Fix OnRunEffects example (ngrx#430)
  chore(docs): Add docs on usage of custom router state serializer with store freeze (ngrx#426)
  chore(docs): Add missing from in metareducer example. (ngrx#418)
  docs(Entity): Fix examples for @ngrx/entity usage (ngrx#415)
  feat(Entity): Add default selectId function for EntityAdapter (ngrx#405)
  fix(Example): Add missing import for catch operator (ngrx#409)
  docs(effects): Remove usage of deprecated `toPayload` util in example (ngrx#407)
  chore(Example): Add Jest as test runner for example tests (ngrx#371)
  fix(Store): Refactor parameter initialization in combineReducers for Closure
  feat(Entity): Rename 'sort' to 'sortComparer'
  chore(docs): Minor fixes to entity interfaces documentation (ngrx#390)
  chore(docs): Change providing injected reducers by factory instead of value (ngrx#387)
  fix(Store): Fix typing for feature to accept InjectionToken (ngrx#375)
  chore(docs): Update @ngrx/entity documentation examples and usage (ngrx#369)
  docs(entity): Fix typo in url (ngrx#365)
  chore(Example): Documented @ngrx/entity and added to example app (ngrx#328)
  fix(RouterStore): Stringify error from navigation error event (ngrx#357)
  chore(docs): Fix action interface example (ngrx#360)
  chore(Example): Added ngrx-store-freeze meta-reducer to example application (ngrx#343)
  ...
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

Successfully merging this pull request may close these issues.

6 participants