Excellent solution, It's very clean and useful because you can move the logic of transform the data to the pipe.

However, I have a question, why is the reason because you send parameter by parameter to the pipe instead of send the complete object?

I think it's because the pipe only needs that information and if you send the object It will have unnecessary data. But maybe I am wrong.

Daniel Barrientos
Daniel Barrientos

Written by Daniel Barrientos

I'm Principal frontend engineer, Follow me to learn together about web development, UI / UX, and problem solving.

No responses yet