Angular Component lifecycle
How to update object in Angular?
obj: {"x" = 1}
By mutation:
changing value of x using mutation:
obj.x = 100;
In this method, a change detection algorithm (diff) need to do a deep scan (check every element in DOM tree)
By new reference:
changin...
bikash8848.hashnode.dev3 min read