0
hy would you create a custom pure pipe vs an impure pipe in Angular?
subina kallyani
easy
0completed
337
Answer
- Pure pipes are executed only when their input changes by reference → they are cached and very efficient.
- Impure pipes run on every change detection cycle, which can cause performance issues but are necessary when the transformation depends on mutable objects or external values (e.g., filtering a list).
Click to Reveal Answer
Tap anywhere to see the solution
Revealed
Comments0