Coding task · Angular course · Module 14: Advanced Patterns

Practice: Custom Pipe

The @Pipe decorator defines a pipe, and name sets the name used in the template. The interface the class implements (it has to be imported from @angular/core) requires one method: the one Angular calls with the value and the arguments of the pipe.

Task

Complete the custom pipe that truncates text to a given length.