79683190

Date: 2025-06-28 17:31:52
Score: 0.5
Natty:
Report link

yes ,if you call method/function in the template ,it can lead to call the method/function many times because Angular runs change detection frequently, re-evaluating the method on every cycle. it can lead to performance issues as well on larger code bases.

As in your case getTitle() functions will execute on every change detection cycle, even if their inputs don’t change. We should avoid calling method/function directly in templates.

Reasons:
  • Whitelisted phrase (-1): in your case
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mani