MCPcopy Create free account
hub / github.com/angular/angular / Pipe

Interface Pipe

packages/core/src/metadata/directives.ts:722–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720 * @publicApi
721 */
722export interface Pipe {
723 /**
724 * The pipe name to use in template bindings.
725 * Typically uses lowerCamelCase
726 * because the name cannot contain hyphens.
727 */
728 name: string;
729
730 /**
731 * When true, the pipe is pure, meaning that the
732 * `transform()` method is invoked only when its input arguments
733 * change. Pipes are pure by default.
734 *
735 * If the pipe has internal state (that is, the result
736 * depends on state other than its arguments), set `pure` to false.
737 * In this case, the pipe is invoked on each change-detection cycle,
738 * even if the arguments have not changed.
739 */
740 pure?: boolean;
741
742 /**
743 * Angular pipes marked as `standalone` do not need to be declared in an NgModule. Such
744 * pipes don't depend on any "intermediate context" of an NgModule (ex. configured providers).
745 */
746 standalone?: boolean;
747}
748
749/**
750 * @Annotation

Callers 15

SomePipeClass · 0.90
MyPipeClass · 0.90
MyStandalonePipeAClass · 0.90
MyStandalonePipeBClass · 0.90
TestPipeClass · 0.90
StandalonePipeClass · 0.90
NonStandalonePipeClass · 0.90
SomePipeClass · 0.90
PurePipeClass · 0.90
ImpurePipeClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected