Why should a function call be avoided in an Angular template expression?
- A It is not supported syntactically
- B It is re-evaluated on every change detection cycle, potentially hundreds of times a second
- C It breaks type checking
- D It prevents lazy loading
Answer
It is re-evaluated on every change detection cycle, potentially hundreds of times a second
Precompute the value in the component or use a pure pipe. This is one of the most common causes of poor Angular runtime performance.





