ngrx example application

TLDR: In basic terms: 

  • ngrx.Store is a DB
  • A Reducer takes a Table (A part of the DB ie Store) and an Action (Query) and runs the Action on the Table
  • An Action is a Query that’ll be run on a Table in the DB (Store)
  • Store is what you inject in your component and it’s how you do everything:
    • Store is like HTTP in that it’s an observable and an injectable service
    • It’s Strongly Typed (like any DB is)

This application utilizes @ngrx/db to persist the collection across sessions; @ngrx/store to manage the state of the app and to cache requests made to the Google Books API; @angular/router to manage navigation between routes; and@ngrx/effects to isolate side effects.

Included

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s