Today we are excited to announce the official release of v6 of the NgRx framework. This release is jam packed with bug fixes and improvements to our Schematics package. We have focused on trying to make the upgrade as smooth as possible with very few breaking changes. You can view the full change log for a list of all of the bug fixes and breaking changes.
If you are using the CLI, upgrading is as easy as
ng update @ngrx/store. This will update all of your NgRx packages to v6 including Effects, Schematics, Entity, Router Store, and Store Devtools.
While there are very few user facing features in NgRx 6 this release was a major milestone for us. We have updated our build process to Bazel, we are committing to unifying our major version number with Angular, and we have strengthened our integration with the Angular CLI by introducing full support for the
ng add and
ng update commands. …
One of the most consistent complaints about building apps with NgRx is the amount of boilerplate developers have to write. The challenge when trying to solve the boilerplate issue is that the required explicitness is essential to get the full benefits out of the architecture. We think that by developing targeted libraries we can help reduce some of this boilerplate while retaining all of the benefits that NgRx provides.
Today we are excited to announce the release of @ngrx/entity, the first such library from the NgRx team designed to reduce boilerplate. …
I recently got the opportunity to help build a web app using Angular 2. I think the framework suffers from complexity, though Angular 2 is undeniably powerful. This post-mortem delves into my experiences building with the framework, good and bad.
I was already using RxJS pretty heavily in my Angular 1 apps with subjects in particular making for great messaging busses between our services. With Angular 2 promising first-class support for observables I was excited to fully embrace reactive programming throughout the app.
I leveraged the Flux architecture powered by the immensely popular Redux library. For a cleaner integration with Angular 2’s injector and TypeScript’s type system, I wrote a class-based wrapper around Redux that exposes state changes using RxJS observables. Consumers can subscribe to these observables and use the Store class to dispatch state-changing actions. André Staltz has an excellent guide on reactive programming, and if you want to learn more about how to use Redux with Angular 2 or RxJS I recommend these…