Some ideas from the functional paradigm, such as pure functions and immutable data, constantly find broader applications in building user interface.
One of the biggest showdowns in an AngularJS application is caused by the evaluation of hundreds of expressions inside the $digest loop. Using immutable collections can help us reduce the running time of some of them. The unidirectional data flow in Angular 2 allows us to take advantage of the “pure components” for further optimizations in our applications.
In this talk I’m going to make an introduction to how we can take advantage of immutable data structures in our Angular 1 and 2 applications.