The Pros and Cons of Property Setters vs. ngOnChanges
As Angular developers, one of the challenges we often face is how to handle changes to input properties in our components. There are a few different approaches we can take, and in this chapter, we’ll take a look at the pros and cons of using property setters versus the ngOnChanges lifecycle hook. We’ll also provide some guidelines for deciding which approach is best for your project.
A recent tweet about @Input() ...