Angular By Solutions  -  Part-1

Angular is a large framework offering a variety of tools to create a solution. There are many ways to achieve the same thing. One can easily get confused about the path they should choose for a particular situation. This series is dedicated to solve some of the conundrum an Angular developer faces. Each part comprises of a problem situation and a few proposed solutions . Examples and code references will be according to Angular Version 7. Hope you like it. Common imports & decorators are omitted from code samples for simplicity. Situation 1: How to monitor changes of component properties? Angular project is basically a tree of components & the common functionality of a component is to declare some properties, bind them to view , watch for changes and do some task when the value is changed. Angular by default updates the property value attached with the model (Not for cases like ngModelChange when we have to manually (more) »