I am using a function inside HTML template, I cannot use a variable directly because the condition is little complex.
My Problem is that the function in the template is called multiple times.
For Example this Stackblitz (Minimal, Reproducible Example)
Logs get Name was called
4 times on load and 2 more times after clicking Change Version button.
I would like to call this once on load and only one per click. How can I achieve that for performance's sake