ngrx-workshop
  • Table of Contents
  • Setup and Configuration
  • Rules of Thumb
  • Rules of Thumb pt2
  • NgRx Libraries
    • NgRx Data
    • NgRx Entity
    • Action Creators
    • NgRx Auto Entity
  • NgRx Facades
    • NgRx Facades
  • Testing
    • Testing Factory
    • Testing Reducers
    • Testing Selectors
    • Testing Effects
  • Advanced Actions
    • 3 Types of Actions
    • Deciders
    • Splitter Actions
    • Aggregators
  • ToDo
    • Todo
Powered by GitBook
On this page
  • Installation
  • Define our data (entities)
  • Declare our App Store Module
  • Create Hero Service
  • Implement in Component

Was this helpful?

  1. NgRx Libraries

NgRx Data

PreviousRules of Thumb pt2NextNgRx Entity

Last updated 5 years ago

Was this helpful?

  • John Papa/Ward Bell

  • Eliminates actions, reducers, effects, selectors

  • Entities declared in configuration

  • Services extend EntityCollectionServiceBase using model Type

Installation

npm i @ngrx/data

Define our data (entities)

Declare our App Store Module

Create Hero Service

Implement in Component

Refactor Tour of Heroes to use NgRx-Data:

https://stackblitz.com/github/jessesanders/tour-of-heroes/tree/ngrx-data