You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduction to Angular Material, ScSS and the CDK
Working with immutable data
How to define immutable entity?
We saw that we can create immutable entities by defining an interface where each property is readonly
How to derive new object from existing one?
We saw that we can use several javscript tools to help us
Modifying object property using the spread operator (...) where we only specifiy the changed property
newObj={...oldObj,prop1: newValue}
Add item to array using the spread operator on arrays, so we create a new array which contains all the elements of the original array, with the new item.