| 726 | * @publicApi |
| 727 | */ |
| 728 | export 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 |
no outgoing calls
no test coverage detected