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

Interface Pipe

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

Source from the content-addressed store, hash-verified

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