Slide 43
Slide 43 text
Immutable.js to the rescue
Immutable.js is a library that does not update data in place, but yields
updated data instead
https://facebook.github.io/immutable-js/
const map1 = Immutable.Map({ a: 1, b: 2, c: 3 });
const map2 = map1.set('b', 50);
map1.get('b'); // 2
map2.get('b'); // 50
map2.toObject(); // { a: 1, b: 50, c: 3 }
Change Detection Strategies
So zünden Sie den Turbo
Angular Performance