If in the views one calls a function on the variable such as:
{{ myFunc(test) }}
This function is executed multiple times rather than 1.
I have it defined my function as:
myFunc(s: string) {
console.log("I am being called")
return s;
}
and looking at the console log one can see that function is being executed 4 times. Created stackblitz to illustrate.
In my project where function is called from a service I get ~20 console.logs.
Seems very inefficient, why is this happening?