Skip to main content

NG Pipes

Pipes​

Table of Contents​

  1. Pipes

Pipes – "Pipes transform displayed values within a template."

Uses:

  • pass data to paginate

Angular has Pure and Impure Pipes.

  • Pure Pipe: the pipe is executed only when the input value changes.
  • Impure Pipe: the pipe is executed every time the change detection runs. (recommended not to use since it may slow down the app)

Angular has built-in pipes and custom pipes.

  • JsonPipe
  • AsyncPipe
  • DecimalPipe
  • Custom Pipe >> PipeTransform