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

Was this helpful?

  1. NgRx Facades

NgRx Facades

PreviousNgRx Auto EntityNextTesting Factory

Last updated 5 years ago

Was this helpful?

  • Similar to Service w/ Subject

  • Removed NgRx implementation from components

  • Hides NgRx implementation

Key Points

  • Imports store and actions

  • Read only properties to access selector streams

  • Methods dispatch actions handled by effects

Refactor Tour of Heroes to use a facade

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