Dec 14, 2020
As mentioned in the article. It is useful in cases where you want to format something before it gets to the template.
And you are right, the example in the article could better do with a template pipe.
I only used it to stress the point that you can use a pipe in a component in a simple context (without complicating matters).
If you are interested in more details, let me know.