Skip to content

Commit c9f584b

Browse files
MeAkibthePunderWoman
authored andcommitted
docs: add IMPORTANT prefix to pipe usage warning and
Adds an IMPORTANT label to emphasize the guidance about avoiding impure pipes due to potential performance impact.
1 parent a904d9f commit c9f584b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • adev/src/content/guide/templates

adev/src/content/guide/templates/pipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export class MyCustomTransformationPipe implements PipeTransform {
271271

272272
When you want a pipe to detect changes within arrays or objects, it must be marked as an impure function by passing the `pure` flag with a value of `false`.
273273

274-
Avoid creating impure pipes unless absolutely necessary, as they can incur a significant performance penalty if used without care.
274+
IMPORTANT: Avoid creating impure pipes unless absolutely necessary, as they can incur a significant performance penalty if used without care.
275275

276276
```angular-ts
277277
import { Pipe, PipeTransform } from '@angular/core';

0 commit comments

Comments
 (0)