In this blog post I will talk about the changes coming in Angular 2 that will improve its support for functional programming.
Using a mutable domain model goes against our goal. Say we have a mutable domain model that backs up my component. And the component updates the model. Some other component, somewhere else, that happened to point it, will be updated.
Instead we should model our domain using dumb data structures, such as record-like objects and arrays, and transform them using map, filter, and reduce.
Your new post is loading...