From the course: Angular Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Overview of Angular pipes

Overview of Angular pipes - Angular Tutorial

From the course: Angular Essential Training

Overview of Angular pipes

- [Instructor] Pipes are one of Angular's most powerful features. They're easy to write, they're easy to test, and they keep your application fast and performant. All Angular developers should know how to use pipes. You can use pipes anytime you need to manipulate content in the UI. This could be something simple, like making text uppercase or localizing numbers and date formats. but you can also use pipes for more complex things, like joining an array of data into one big string or parsing error codes into a more meaningful description. I love pipes because they meet all my criteria for great code. They do one thing well. I can compose them together, passing the output of one pipe as the input to another, and they're pure functions by default. Let's talk about that last point real quick. Pure functions, by definition, always return the same output for the same set of inputs. This means if you already ran the code for a…

Contents