I avoid using getters and setters for @Inputs. If an input needs to be modified/cleansed/transformed/prefixed/suffixed, create a pipe to perform transformations or a service that transforms the data prior to passing it to the child component. BTW Thank you for sharing your thoughts.
Thanks for your comment. The pipe, the service, the setters or the OnChanges hook, are all valid use cases. Each one is a tool, and as always, the tools are used per case. I do not see it like a black or white (use this or the other) and I do not exclude any of the tools from my toolbox.
I have an additional comment on this subject. I use a setter from time to time, for example to assign a value to a property of my component. However, whether in a setter or elsewhere, I don't like to directly modify the object that I receive as an argument to my function. What do you think about this ? Thank you for your great channel. 🙏
I've just discovered you. I'm a fan of Angular like you. Subscribed & liked. Please keep this on. Thanks a million.
Thanks for the Sub :)
Glad you like my content!
as always delivering great stuff, thanks for the effort and time taken to share with us!
Much appreciated!
Keep going man. Very well explained videos so far. Thanks a lot ;)
Glad you like them! :)
I realy enjoy your videos.
Χαιρετισμούς
Θοδωρής
Σε ευχαριστώ πολύ Θοδωρή! :)
Thank you sir for uploading great video. Greate information about viewchildren and service and your teaching method is very deep.
So nice of you. Glad you liked it!
I avoid using getters and setters for @Inputs. If an input needs to be modified/cleansed/transformed/prefixed/suffixed, create a pipe to perform transformations or a service that transforms the data prior to passing it to the child component.
BTW Thank you for sharing your thoughts.
Thanks for your comment.
The pipe, the service, the setters or the OnChanges hook, are all valid use cases. Each one is a tool, and as always, the tools are used per case.
I do not see it like a black or white (use this or the other) and I do not exclude any of the tools from my toolbox.
I have an additional comment on this subject. I use a setter from time to time, for example to assign a value to a property of my component. However, whether in a setter or elsewhere, I don't like to directly modify the object that I receive as an argument to my function. What do you think about this ?
Thank you for your great channel. 🙏
thanks. Would love to see micro frontends with nx
This is a great topic. Noted!
Thanks!
You are welcome!
Thank U!!
You're welcome!
Can you please create series for Micro frontend app
That's a great topic. Noted!