Anwarul Islam
Jan 17, 2022

--

Thanks for sharing your thoughts on this. I use setter frequently. But, didn't know about this use case before. Although I used setter for only one props. So, in that case setter is okay I guess. But, now I got to know that when we have so many props changing at the same time we should use ngOnChanges.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Anwarul Islam
Anwarul Islam

Written by Anwarul Islam

I am a self-taught and independent software developer. Fall in love with PWA, SPA, and modern web technologies. Mostly write code in TypeScript/JavaScript.

Responses (1)

Write a response