Put in order · Angular course · Module 14: Advanced Patterns

Pipe class definition

Order the lines of the truncate pipe definition (top to bottom):

Items to put in order

  • @Pipe({ name: 'truncate' })
  • }
  • }
  • export class TruncatePipe implements PipeTransform {
  • transform(value: string): string {

You can check the correct answer by solving this task in the CodeWorlds game.