Hopefully, you are starting to see a pattern of simplification and clarity to the data flow while integrating ngrx. It has helped reduce code, while improving data flow by providing consistent effect chains to various actions, which may need to occur anywhere (from lazy loaded modules or not). By reducing the overhead of managing explicit injected dependencies throughout and instead relying on Store and Actions to initiate the appropriate work, we are increasing the maintainability and scalability of our app. On top of all that, it is paving a pathway to effective testability, which we will cover in Chapter 12, Unit Testing.
This chapter highlighted the additional advantages when combining NativeScript with Angular by opening up integration potential with rich libraries such as ngrx to improve our app's architecture...