Angular · Junior · Question 24 of 75

How do you create a custom pipe?

Explanation

Add the pipe class to the imports of the component that uses it. Pipes are pure by default: transform runs again only when the input value or arguments change by reference.

Further reading

Problem with a question

Angular · Junior · question 24

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz