Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Architecting Angular Applications with Redux, RxJS, and NgRx

You're reading from  Architecting Angular Applications with Redux, RxJS, and NgRx

Product type Book
Published in Mar 2018
Publisher Packt
ISBN-13 9781787122406
Pages 364 pages
Edition 1st Edition
Languages
Toc

Table of Contents (12) Chapters close

Preface Quick Look Back at Data Services for Simple Apps 1.21 Gigawatt – Flux Pattern Explained Asynchronous Programming Functional Reactive Programming RxJS Basics Manipulating Streams and Their Values RxJS Advanced Redux NgRx – Reduxing that Angular App NgRx – In Depth Other Books You May Enjoy

Understanding NgRx – building our own micro implementation

We have done this experiment once before in Chapter 8, Redux. The point was to gain a deeper understanding of what goes on behind the scenes. The difference between implementing Redux and implementing NgRx is the use of a library for publish/ subscribe, which is the way you choose to convey to a listener that a change has occurred. In our Redux implementation in Chapter 8, Redux, we gave you the choice between implementing the Gang of Four publish-subscribe pattern without the help of a library, or using EventEmitter to achieve the same thing. In NgRx, that component is RxJS. So, let's crack on with the implementation. Before doing so, let's describe what we aim to implement:

  • We aim to implement a store that holds a state
  • It should be possible to dispatch an action to said store so that its inner state...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}