DEV Community

Discussion on: Angular: Setters vs ngOnChanges - which one is better?

Collapse
 
penguintheorem profile image
Attilio Urbani

Hi!

i prefer the first approach too (setter). I think that the code is definitely more clean than using the hook. Thanks for sharing your tip!