Pure Pipes for Performance
Explain how pure (the default) pipes avoid unnecessary recomputation compared to impure pipes.
Angular pipes are, by default, "pure" — meaning Angular only re-invokes the pipe's transform() method when its input value actually changes by reference (or by value, for primitives), not on every single change detection cycle regardless of whether anything relevant changed. This default behavior is a meaningful, largely invisible performance optimization, and interviewers ask about it to check whether you understand why this matters and what happens if you deliberately opt out of it.
A pure pipe is like a calculator's memory function that only recalculates when you actually enter new numbers, instantly recalling the previous answer if you press equals again on the same input; an impure pipe recalculates from scratch every single time you glance at the display, whether or not the numbers changed.