Angular + NGRX Architecture: When To Use Component State Vs NGRX State
How do you decide when a piece of information should go in your NGRX store, as opposed to being maintained as local component variables?
How do you decide when a piece of information should go in your NGRX store, as opposed to being maintained as local component variables?
It’s easy to mock up emissions from your NGRX store over time in your unit tests, but the manner in which you do so is not immediately obvious from reading the NGRX testing documentation. In this post I’ll explain my thought process in how I solved this problem in the hopes that it helps others.
ShareReplay is an RXJS operator which is very useful for managing expensive cold observable operations, sharing the source observable for concurrent subscribers, and replaying the result to subsequent subscribers without performing the operation again. It works by…
PrimeNG is a capable open source Angular UI library which provides a large number of useful components. There are plenty of premium themes available for PrimeNG, some of which do look rather nice. They also offer a commercial theme designer product. However, for those of us who wish to take the free, open-source route, the options are limited, which is ironic considering that the library itself is under the MIT license…