Pipe
Decorator that marks a class as pipe and supplies configuration metadata.
@Pipe ({})
name
string
The pipe name to use in template bindings. Typically uses lowerCamelCase because the name cannot contain hyphens.
pure
boolean | undefined
When true, the pipe is pure, meaning that the
transform()
method is invoked only when its input arguments
change. Pipes are pure by default.
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.
standalone
boolean | undefined
Angular pipes marked as standalone
do not need to be declared in an NgModule. Such
pipes don't depend on any "intermediate context" of an NgModule (ex. configured providers).
More information about standalone components, directives, and pipes can be found in this guide.