This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

Pipe

OptionDescription
name

The pipe name to use in template bindings.

pure

When true, the pipe is pure, meaning that the transform() method is invoked only when its input arguments change. Pipes are pure by default.

Options

The pipe name to use in template bindings.

name: string
      
      name: string
    

When true, the pipe is pure, meaning that the transform() method is invoked only when its input arguments change. Pipes are pure by default.

pure: boolean
      
      pure: boolean
    

If the pipe has internal state (that is, the result depends on state other than its arguments), set pure to false. In this case, the pipe is invoked on each change-detection cycle, even if the arguments have not changed.