Enea Jahollari
Sep 28, 2022

--

Thanks for the kind words.

Regarding the topic, I agree with you, I belonged to that crowd too, but not anymore πŸ˜…. Also, the title is a bit "clickbaity".

If there's enough communication in the team, it's not going to be an issue.

I prefer this method now, because, there is less code and we can pass parameters in a javascript way to the function call.

Ex.

method: multiplyNumbers(num1, num2)

in template:

- with memo: {{ multiplyNumbers(a, b) }}

- with pipe: {{ a | multiplyNumbers : b }}

With memo approach is easier in the eyes, is also easier typechecked (as a function call and not as pipe transform method call) (easier for the typechecker would be a better way to say it).

Thanks for the comment!

--

--

Enea Jahollari
Enea Jahollari

Written by Enea Jahollari

GDE for Angular | Software Engineer @ push-based.io | Performance & architecture enthusiast

Responses (1)