Pipe

Pipes in Angular transform the data before displaying it in the template.

Snippet:

@Pipe({ name: "capitalize" }) export class CapitalizePipe implements PipeTransform { transform(value: string): string { return value.charAt(0).toUpperCase() + value.slice(1); } }

Example:

{{ "hello" | uppercase }}